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:
parent
502ba9284f
commit
c67a32a845
|
@ -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) {
|
||||
|
|
|
@ -385,7 +385,12 @@ void WebTab::reload()
|
|||
|
||||
void WebTab::load(const LoadRequest &request)
|
||||
{
|
||||
if (!isRestored()) {
|
||||
tabActivated();
|
||||
QTimer::singleShot(0, this, std::bind(&WebTab::load, this, request));
|
||||
} else {
|
||||
m_webView->load(request);
|
||||
}
|
||||
}
|
||||
|
||||
void WebTab::unload()
|
||||
|
|
Loading…
Reference in New Issue
Block a user