mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Inspect correct url() instead of dragText().
Fixes #25720.
Regression was introduced in 23387d6625.
This commit is contained in:
@@ -1323,7 +1323,7 @@ TextForMimeData MediaLocation::clipboardText() const {
|
||||
if (!descriptionResult.text.isEmpty()) {
|
||||
result.append(std::move(descriptionResult));
|
||||
}
|
||||
result.append(LocationClickHandler(_point).dragText());
|
||||
result.append(LocationClickHandler(_point).url());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,10 @@ public:
|
||||
return QString();
|
||||
}
|
||||
|
||||
QString url() const override {
|
||||
return _text;
|
||||
}
|
||||
|
||||
QString dragText() const override {
|
||||
return _text;
|
||||
}
|
||||
|
||||
@@ -4549,7 +4549,7 @@ void OverlayWidget::handleMouseRelease(
|
||||
updateOver(position);
|
||||
|
||||
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();
|
||||
return;
|
||||
}
|
||||
|
||||
+1
-1
Submodule Telegram/lib_ui updated: c72beeeb7c...a113e50050
Reference in New Issue
Block a user