diff --git a/src/lib/tabwidget/tabbar.cpp b/src/lib/tabwidget/tabbar.cpp index ad2779f00..35a4685e8 100644 --- a/src/lib/tabwidget/tabbar.cpp +++ b/src/lib/tabwidget/tabbar.cpp @@ -661,12 +661,12 @@ void TabBar::dropEvent(QDropEvent* event) req = mApp->searchEnginesManager()->searchResult(mime->text()); } if (action == SelectTab) { - if (tab->isRestored() && !req.isEmpty()) { + if (tab->isRestored() && !req.isValid()) { tab->webView()->load(req); } } else if (action == PrependTab || action == AppendTab) { const int newIndex = action == PrependTab ? index : index + 1; - if (!req.isEmpty()) { + if (!req.isValid()) { m_tabWidget->addView(req, QString(), Qz::NT_SelectedNewEmptyTab, false, newIndex, index < pinnedTabsCount()); } else if (mime->hasFormat(MIMETYPE) && sourceTabBar) { WebTab *tab = sourceTabBar->webTab();