From a02535d655e8467e364fd85be4f64be924e91608 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 26 Jun 2020 11:39:16 +0100 Subject: [PATCH] Ensure configurations switches start with the right style sheet --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index 4943f2f02..040225352 100644 --- a/main.cpp +++ b/main.cpp @@ -323,6 +323,7 @@ int main(int argc, char *argv[]) db.exec ("PRAGMA locking_mode=EXCLUSIVE"); int result; + auto const& original_style_sheet = a.styleSheet (); do { #if WSJT_QDEBUG_TO_FILE @@ -387,6 +388,9 @@ int main(int argc, char *argv[]) splash.raise (); QObject::connect (&a, SIGNAL (lastWindowClosed()), &a, SLOT (quit())); result = a.exec(); + + // ensure config switches start with the right style sheet + a.setStyleSheet (original_style_sheet); } while (!result && !multi_settings.exit ());