Skip to content

Commit

Permalink
fix(ui): use correct QWebEngineProfile when applying font settings
Browse files Browse the repository at this point in the history
Fixes #1631.
  • Loading branch information
trollixx committed Jun 16, 2024
1 parent 2df0378 commit cae1ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/ui/settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <qxtglobalshortcut/qxtglobalshortcut.h>

#include <browser/settings.h>
#include <core/application.h>
#include <core/settings.h>

Expand Down Expand Up @@ -84,7 +85,7 @@ SettingsDialog::SettingsDialog(QWidget *parent)
ui->globalHotKeyGroupBox->setToolTip(tr("Global shortcuts are not supported on the current platform."));
}

QWebEngineSettings *webSettings = QWebEngineProfile::defaultProfile()->settings();
QWebEngineSettings *webSettings = Browser::Settings::defaultProfile()->settings();

// Avoid casting in each connect.
auto currentIndexChangedSignal
Expand Down

0 comments on commit cae1ea7

Please sign in to comment.