From cae1ea748698b86f5ce3736c5faa797eb6910650 Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Sun, 16 Jun 2024 02:58:23 -0400 Subject: [PATCH] fix(ui): use correct QWebEngineProfile when applying font settings Fixes #1631. --- src/libs/ui/settingsdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/ui/settingsdialog.cpp b/src/libs/ui/settingsdialog.cpp index 96a3c6c4..110ea308 100644 --- a/src/libs/ui/settingsdialog.cpp +++ b/src/libs/ui/settingsdialog.cpp @@ -26,6 +26,7 @@ #include +#include #include #include @@ -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