mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
parent
93927dfa1e
commit
1fd1691ee2
|
@ -467,6 +467,12 @@ void TabWidget::closeTab(int index, bool force)
|
|||
}
|
||||
}
|
||||
|
||||
// window.beforeunload handling
|
||||
webView->load(QUrl());
|
||||
if (webView->url() != QUrl()) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_locationBars->removeWidget(webView->webTab()->locationBar());
|
||||
disconnect(webView, SIGNAL(wantsCloseTab(int)), this, SLOT(closeTab(int)));
|
||||
disconnect(webView, SIGNAL(changed()), mApp, SLOT(setStateChanged()));
|
||||
|
|
Loading…
Reference in New Issue
Block a user