diff --git a/src/lib/preferences/preferences.cpp b/src/lib/preferences/preferences.cpp index dd2582ea9..3679ba4e3 100644 --- a/src/lib/preferences/preferences.cpp +++ b/src/lib/preferences/preferences.cpp @@ -348,7 +348,7 @@ Preferences::Preferences(BrowserWindow* window) //FONTS settings.beginGroup("Browser-Fonts"); QWebEngineSettings* webSettings = QWebEngineSettings::defaultSettings(); - auto defaultFont = [&](QWebEngineSettings::FontFamily font) { + auto defaultFont = [&](QWebEngineSettings::FontFamily font) -> const QString { const QString family = webSettings->fontFamily(font); if (!family.isEmpty()) return family;