mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-09-28 16:16:48 -04: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");
|
db.exec ("PRAGMA locking_mode=EXCLUSIVE");
|
||||||
|
|
||||||
int result;
|
int result;
|
||||||
|
auto const& original_style_sheet = a.styleSheet ();
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
#if WSJT_QDEBUG_TO_FILE
|
#if WSJT_QDEBUG_TO_FILE
|
||||||
@ -387,6 +388,9 @@ int main(int argc, char *argv[])
|
|||||||
splash.raise ();
|
splash.raise ();
|
||||||
QObject::connect (&a, SIGNAL (lastWindowClosed()), &a, SLOT (quit()));
|
QObject::connect (&a, SIGNAL (lastWindowClosed()), &a, SLOT (quit()));
|
||||||
result = a.exec();
|
result = a.exec();
|
||||||
|
|
||||||
|
// ensure config switches start with the right style sheet
|
||||||
|
a.setStyleSheet (original_style_sheet);
|
||||||
}
|
}
|
||||||
while (!result && !multi_settings.exit ());
|
while (!result && !multi_settings.exit ());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user