Inspect correct url() instead of dragText().

Fixes #25720.

Regression was introduced in 23387d6625.
This commit is contained in:
John Preston 2023-01-12 11:24:25 +04:00
parent f3db43abc9
commit 02f3985125
4 changed files with 7 additions and 3 deletions

View file

@ -1323,7 +1323,7 @@ TextForMimeData MediaLocation::clipboardText() const {
if (!descriptionResult.text.isEmpty()) { if (!descriptionResult.text.isEmpty()) {
result.append(std::move(descriptionResult)); result.append(std::move(descriptionResult));
} }
result.append(LocationClickHandler(_point).dragText()); result.append(LocationClickHandler(_point).url());
return result; return result;
} }

View file

@ -24,6 +24,10 @@ public:
return QString(); return QString();
} }
QString url() const override {
return _text;
}
QString dragText() const override { QString dragText() const override {
return _text; return _text;
} }

View file

@ -4549,7 +4549,7 @@ void OverlayWidget::handleMouseRelease(
updateOver(position); updateOver(position);
if (const auto activated = ClickHandler::unpressed()) { if (const auto activated = ClickHandler::unpressed()) {
if (activated->dragText() == u"internal:show_saved_message"_q) { if (activated->url() == u"internal:show_saved_message"_q) {
showSaveMsgFile(); showSaveMsgFile();
return; return;
} }

@ -1 +1 @@
Subproject commit c72beeeb7c9a02dcfd9b0f3cd23d88100d33225b Subproject commit a113e500503dd4f91211254b74b4b090b64ead34