mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Use falkon profile name for QWebEngineProfile
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
491b66a6b7
commit
973a533fea
@ -296,6 +296,12 @@ MainApplication::MainApplication(int &argc, char** argv)
|
|||||||
NetworkManager::registerSchemes();
|
NetworkManager::registerSchemes();
|
||||||
registerAllowedSchemes();
|
registerAllowedSchemes();
|
||||||
|
|
||||||
|
if (isPrivate()) {
|
||||||
|
m_webProfile = new QWebEngineProfile();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
m_webProfile = new QWebEngineProfile(startProfile.isEmpty() ? QSL("Default") : startProfile);
|
||||||
|
}
|
||||||
m_webProfile = isPrivate() ? new QWebEngineProfile() : new QWebEngineProfile(QSL("Default"));
|
m_webProfile = isPrivate() ? new QWebEngineProfile() : new QWebEngineProfile(QSL("Default"));
|
||||||
connect(m_webProfile, &QWebEngineProfile::downloadRequested, this, &MainApplication::downloadRequested);
|
connect(m_webProfile, &QWebEngineProfile::downloadRequested, this, &MainApplication::downloadRequested);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user