mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
WebView: Immediately delete old page in setPage
This commit is contained in:
parent
e20c3909e5
commit
78cb4f6509
|
@ -155,12 +155,12 @@ void WebView::setPage(WebPage *page)
|
|||
emit m_page->loadFinished(true);
|
||||
}
|
||||
m_page->setView(nullptr);
|
||||
m_page->deleteLater();
|
||||
}
|
||||
|
||||
page->setParent(this);
|
||||
QWebEngineView::setPage(page);
|
||||
delete m_page;
|
||||
m_page = page;
|
||||
m_page->setParent(this);
|
||||
QWebEngineView::setPage(m_page);
|
||||
|
||||
if (m_page->isLoading()) {
|
||||
emit loadStarted();
|
||||
|
|
Loading…
Reference in New Issue
Block a user