mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
fixed drop url over unrestored tabs (#2604)
This commit is contained in:
parent
502ba9284f
commit
c67a32a845
@ -708,7 +708,7 @@ void TabBar::dropEvent(QDropEvent* event)
|
|||||||
req = mApp->searchEnginesManager()->searchResult(mime->text());
|
req = mApp->searchEnginesManager()->searchResult(mime->text());
|
||||||
}
|
}
|
||||||
if (action == SelectTab) {
|
if (action == SelectTab) {
|
||||||
if (tab->isRestored() && req.isValid()) {
|
if (req.isValid()) {
|
||||||
tab->load(req);
|
tab->load(req);
|
||||||
}
|
}
|
||||||
} else if (action == PrependTab || action == AppendTab) {
|
} else if (action == PrependTab || action == AppendTab) {
|
||||||
|
@ -385,7 +385,12 @@ void WebTab::reload()
|
|||||||
|
|
||||||
void WebTab::load(const LoadRequest &request)
|
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()
|
void WebTab::unload()
|
||||||
|
Loading…
Reference in New Issue
Block a user