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

@ -524,7 +524,7 @@ void HistoryList::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()) {
@ -540,7 +540,7 @@ void HistoryList::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();

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();