2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Don't drag-n-drop "internal:" URLs.

This commit is contained in:
John Preston
2023-01-09 09:10:53 +04:00
parent 6137c64444
commit 23387d6625

View File

@@ -93,7 +93,8 @@ QString HiddenUrlClickHandler::copyToClipboardContextItemText() const {
}
QString HiddenUrlClickHandler::dragText() const {
return HiddenUrlClickHandler::copyToClipboardText();
const auto result = HiddenUrlClickHandler::copyToClipboardText();
return result.startsWith(u"internal:"_q) ? QString() : result;
}
void HiddenUrlClickHandler::Open(QString url, QVariant context) {