aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/settings/SettingsAppearance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/settings/SettingsAppearance.cpp')
-rw-r--r--src/ui/dialog/settings/SettingsAppearance.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/dialog/settings/SettingsAppearance.cpp b/src/ui/dialog/settings/SettingsAppearance.cpp
index 299b30d9..f09f9823 100644
--- a/src/ui/dialog/settings/SettingsAppearance.cpp
+++ b/src/ui/dialog/settings/SettingsAppearance.cpp
@@ -140,11 +140,20 @@ void AppearanceTab::SetSettings() {
auto target_theme_index = ui_->themeComboBox->findText(theme);
if (theme.isEmpty() || target_theme_index == -1) {
+#ifdef QT5_BUILD
+ GF_UI_LOG_DEBUG(
+ "There is not valid theme found from settings, "
+ "using current theme (qt5): {}",
+ QApplication::style()->metaObject()->className());
+ ui_->themeComboBox->setCurrentIndex(ui_->themeComboBox->findText(
+ QApplication::style()->metaObject()->className()));
+#else
GF_UI_LOG_DEBUG(
"There is not valid theme found from settings, using current theme: {}",
QApplication::style()->name());
ui_->themeComboBox->setCurrentIndex(
ui_->themeComboBox->findText(QApplication::style()->name()));
+#endif
} else {
ui_->themeComboBox->setCurrentIndex(target_theme_index);
}