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
1 changed files with 2 additions and 1 deletions

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) {