From acb63fa79d9ae25aa95f56f5e7640e51d31335e9 Mon Sep 17 00:00:00 2001 From: Paddle Date: Wed, 16 Aug 2023 08:14:07 +0200 Subject: [PATCH] Theme: Fix the issue that the stylesheet combobox did not update when theme changed. --- src/Gui/PreferencePages/DlgSettingsGeneral.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Gui/PreferencePages/DlgSettingsGeneral.cpp b/src/Gui/PreferencePages/DlgSettingsGeneral.cpp index 6e2ec33c05..71cac7594f 100644 --- a/src/Gui/PreferencePages/DlgSettingsGeneral.cpp +++ b/src/Gui/PreferencePages/DlgSettingsGeneral.cpp @@ -376,7 +376,11 @@ void DlgSettingsGeneral::saveThemes() for (const auto& pack : packs) { if (pack.first == newTheme) { - Application::Instance->prefPackManager()->apply(pack.first); + if (Application::Instance->prefPackManager()->apply(pack.first)) { + auto parentDialog = qobject_cast (this->window()); + if (parentDialog) + parentDialog->reload(); + } break; } }