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

fixed drop url over unrestored tabs (#2604)

This commit is contained in:
Anmol Gautam 2018-02-13 02:42:36 +05:30 committed by David Rosca
parent 502ba9284f
commit c67a32a845
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 7 additions and 2 deletions

View File

@ -708,7 +708,7 @@ void TabBar::dropEvent(QDropEvent* event)
req = mApp->searchEnginesManager()->searchResult(mime->text());
}
if (action == SelectTab) {
if (tab->isRestored() && req.isValid()) {
if (req.isValid()) {
tab->load(req);
}
} else if (action == PrependTab || action == AppendTab) {

View File

@ -385,7 +385,12 @@ void WebTab::reload()
void WebTab::load(const LoadRequest &request)
{
m_webView->load(request);
if (!isRestored()) {
tabActivated();
QTimer::singleShot(0, this, std::bind(&WebTab::load, this, request));
} else {
m_webView->load(request);
}
}
void WebTab::unload()