diff --git a/src/lib/webengine/webview.cpp b/src/lib/webengine/webview.cpp index bbc58e6a5..d667a6bb8 100644 --- a/src/lib/webengine/webview.cpp +++ b/src/lib/webengine/webview.cpp @@ -147,7 +147,8 @@ void WebView::setPage(WebPage *page) } if (m_page) { - m_page->deleteLater(); // we are the parent, see below + m_page->setView(nullptr); + m_page->deleteLater(); } m_page = page;