Commit 7419d27c authored by Christoph Roick's avatar Christoph Roick

Fix crash in documentation view

A QWebEngineProfile must exist longer, than a QWebEnginePage using it.
The page is now explicitly deleted before the profile.

BUG: 402026
parent 813ccede
......@@ -99,6 +99,13 @@ public:
QWebEngineView* m_view = nullptr;
StandardDocumentationPage* m_page = nullptr;
~StandardDocumentationViewPrivate()
{
// make sure the page is deleted before the profile
// see https://doc.qt.io/qt-5/qwebenginepage.html#QWebEnginePage-1
delete m_page;
}
void init(StandardDocumentationView* parent)
{
// prevent QWebEngine (Chromium) from overriding the signal handlers of KCrash
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment