#6345 Let Mainwindow save settings before program quits
# Conflicts: # src/gui/src/main.cpp
This commit is contained in:
parent
7da1d4f9cc
commit
46a5b7f9ae
|
@ -97,6 +97,10 @@ int main(int argc, char* argv[])
|
||||||
app.switchTranslator(appConfig.language());
|
app.switchTranslator(appConfig.language());
|
||||||
|
|
||||||
MainWindow mainWindow(settings, appConfig, licenseManager);
|
MainWindow mainWindow(settings, appConfig, licenseManager);
|
||||||
|
|
||||||
|
QObject::connect(dynamic_cast<QObject*>(&app), SIGNAL(aboutToQuit()),
|
||||||
|
&mainWindow, SLOT(saveSettings()));
|
||||||
|
|
||||||
SetupWizard setupWizard(mainWindow, true);
|
SetupWizard setupWizard(mainWindow, true);
|
||||||
|
|
||||||
if (appConfig.wizardShouldRun())
|
if (appConfig.wizardShouldRun())
|
||||||
|
|
Loading…
Reference in New Issue