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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user