1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

MainApplication: Create private browsing QWebEngineProfile without parent

Fixes crash on shutdown
This commit is contained in:
David Rosca 2019-04-20 09:33:44 +02:00
parent c5e1aab96a
commit eb4b68fdd9
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -283,7 +283,7 @@ MainApplication::MainApplication(int &argc, char** argv)
NetworkManager::registerSchemes();
m_webProfile = isPrivate() ? new QWebEngineProfile(this) : QWebEngineProfile::defaultProfile();
m_webProfile = isPrivate() ? new QWebEngineProfile() : QWebEngineProfile::defaultProfile();
connect(m_webProfile, &QWebEngineProfile::downloadRequested, this, &MainApplication::downloadRequested);
m_networkManager = new NetworkManager(this);