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:
parent
c7d58017d2
commit
8100020b41
|
@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user