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

fixed drag-n-drop in OS X for 0.8.34.dev version

This commit is contained in:
John Preston
2015-06-28 18:41:13 +03:00
parent dd797d5d46
commit ef9aaf659c
2 changed files with 4 additions and 4 deletions

View File

@@ -510,7 +510,7 @@ void OverviewInner::onDragExec() {
} else if (textlnkDown()) {
sel = textlnkDown()->encoded();
if (!sel.isEmpty() && sel.at(0) != '/' && sel.at(0) != '@' && sel.at(0) != '#') {
urls.push_back(QUrl::fromEncoded(sel.toUtf8()));
// urls.push_back(QUrl::fromEncoded(sel.toUtf8())); // Google Chrome crashes in Mac OS X O_o
}
}
if (!sel.isEmpty() || forwardSelected) {
@@ -526,7 +526,7 @@ void OverviewInner::onDragExec() {
mimeData->setData(qsl("application/x-td-forward-selected"), "1");
}
drag->setMimeData(mimeData);
drag->exec();
drag->exec(Qt::CopyAction);
return;
} else {
HistoryItem *pressedLnkItem = App::pressedLinkItem(), *pressedItem = App::pressedItem();