mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Ensure configurations switches start with the right style sheet
This commit is contained in:
parent
ee157cde96
commit
a02535d655
4
main.cpp
4
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 ());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user