1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Use falkon profile name for QWebEngineProfile

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-06-15 10:41:30 +02:00
parent 491b66a6b7
commit 973a533fea
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -296,6 +296,12 @@ MainApplication::MainApplication(int &argc, char** argv)
NetworkManager::registerSchemes();
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"));
connect(m_webProfile, &QWebEngineProfile::downloadRequested, this, &MainApplication::downloadRequested);