1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

TabBar: Support dropping text on tabs

It will be searched for using default search engine
This commit is contained in:
David Rosca 2017-12-31 19:30:16 +01:00
parent c7d58017d2
commit 8100020b41

View File

@ -555,7 +555,11 @@ void TabBar::dropEvent(QDropEvent* event)
else {
WebTab* tab = m_window->weView(index)->webTab();
if (tab->isRestored()) {
tab->webView()->load(mime->urls().at(0));
if (mime->hasUrls()) {
tab->webView()->load(mime->urls().at(0));
} else if (mime->hasText()) {
tab->webView()->load(mApp->searchEnginesManager()->searchResult(mime->text()));
}
}
}
}