mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Inspect correct url() instead of dragText().
Fixes #25720.
Regression was introduced in 23387d6625
.
This commit is contained in:
parent
f3db43abc9
commit
02f3985125
4 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue