Commit cfb973c7 authored by Wolfgang Bauer's avatar Wolfgang Bauer
Browse files

Fix crashes with Qt 5.12

Commit 1ccd6815 moved the creation of the mNetworkAccessManager down
without a mentioned reason, but that apparently causes crashes with Qt
5.12 at least.

Moving it back to the top seems to fix that.

BUG: 371511
FIXED-IN: 5.11.2
Differential Revision: https://phabricator.kde.org/D21236
parent 387fe8cf
......@@ -79,6 +79,7 @@ ArticleViewerWebEngine::ArticleViewerWebEngine(KActionCollection *ac, QWidget *p
, mLastButtonClicked(LeftButton)
, mViewerPluginToolManager(nullptr)
{
mNetworkAccessManager = new WebEngineViewer::InterceptorManager(this, ac, this);
QWebEngineProfile *profile = QWebEngineProfile::defaultProfile();
mPageEngine = new ArticleViewerWebEnginePage(profile, this);
......@@ -90,7 +91,6 @@ ArticleViewerWebEngine::ArticleViewerWebEngine(KActionCollection *ac, QWidget *p
connect(profile, &QObject::destroyed, webEngineUrlInterceptor, &AkregatorRequestInterceptor::deleteLater);
profile->setRequestInterceptor(webEngineUrlInterceptor);
#endif
mNetworkAccessManager = new WebEngineViewer::InterceptorManager(this, ac, this);
setPage(mPageEngine);
......
Supports Markdown
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