Skip to content

Commit

Permalink
fix(browser): use default QWebEngineProfile for Qt 6
Browse files Browse the repository at this point in the history
The default profile is off-the-record already.
  • Loading branch information
trollixx committed Jun 16, 2024
1 parent cae1ea7 commit 3d40ec7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libs/browser/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ Settings::Settings(Core::Settings *appSettings, QObject *parent)
{
Q_ASSERT(!m_webProfile);

#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// Create a new off-the-record profile.
m_webProfile = new QWebEngineProfile(this);
#else
// Default profile for Qt 6 is off-the-record.
m_webProfile = QWebEngineProfile::defaultProfile();
#endif

// Setup URL interceptor.
#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
Expand Down

0 comments on commit 3d40ec7

Please sign in to comment.