mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 21:27:07 +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()) {
|
||||
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 @@
|
|||
Subproject commit c72beeeb7c9a02dcfd9b0f3cd23d88100d33225b
|
||||
Subproject commit a113e500503dd4f91211254b74b4b090b64ead34
|
Loading…
Add table
Reference in a new issue