We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 33e0380 + 7f478bc commit 95a0ddcCopy full SHA for 95a0ddc
1 file changed
addon/doxywizard/doxywizard.cpp
@@ -463,10 +463,14 @@ void MainWindow::switchLanguage()
463
qDebug() << "selected language" << langCode;
464
if (langCode!=DoxygenWizard::langCode)
465
{
466
- setLanguage(langCode);
467
// Restart the application
468
- qApp->quit();
469
- QProcess::startDetached(qApp->arguments()[0], qApp->arguments().mid(1));
+ if (discardUnsavedChanges())
+ {
+ setLanguage(langCode);
470
+ saveSettings();
471
+ qApp->quit();
472
+ QProcess::startDetached(qApp->arguments()[0], qApp->arguments().mid(1));
473
+ }
474
}
475
476
0 commit comments