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

Fix QWebEngineProfile name

Forgot to remove the original line before rewriting the condition.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-06-25 20:01:11 +02:00
parent 9e7ee777da
commit c4b68845d3
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -302,7 +302,6 @@ MainApplication::MainApplication(int &argc, char** argv)
else { else {
m_webProfile = new QWebEngineProfile(startProfile.isEmpty() ? QSL("Default") : startProfile); 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); connect(m_webProfile, &QWebEngineProfile::downloadRequested, this, &MainApplication::downloadRequested);
m_webProfile->setNotificationPresenter([&] (std::unique_ptr<QWebEngineNotification> notification) { m_webProfile->setNotificationPresenter([&] (std::unique_ptr<QWebEngineNotification> notification) {