aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-30 18:50:30 +0000
committersaturneric <[email protected]>2024-07-30 18:50:30 +0000
commit3dd7e0f9c7782a405fb9ff1f83399ed4d84fbee2 (patch)
treec736af255e4fd9e75e5d5bc0342d519325bbe774
parentfix: do clean up (diff)
downloadGpgFrontend-3dd7e0f9c7782a405fb9ff1f83399ed4d84fbee2.tar.gz
GpgFrontend-3dd7e0f9c7782a405fb9ff1f83399ed4d84fbee2.zip
fix: correct a mistake
-rw-r--r--src/ui/dialog/settings/SettingsAppearance.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/dialog/settings/SettingsAppearance.cpp b/src/ui/dialog/settings/SettingsAppearance.cpp
index 6b1eb076..b39572bd 100644
--- a/src/ui/dialog/settings/SettingsAppearance.cpp
+++ b/src/ui/dialog/settings/SettingsAppearance.cpp
@@ -144,9 +144,8 @@ void AppearanceTab::SetSettings() {
ui_->themeComboBox->setCurrentIndex(
ui_->themeComboBox->findText(QApplication::style()->name()));
#else
- for (const auto& metadata : module->GetModuleMetaData().asKeyValueRange()) {
- info << " - " << metadata.first << ": " << metadata.second << "\n";
- }
+ ui_->themeComboBox->setCurrentIndex(ui_->themeComboBox->findText(
+ QApplication::style()->metaObject()->className()));
#endif
} else {
ui_->themeComboBox->setCurrentIndex(target_theme_index);