Skip to content

Commit 95a0ddc

Browse files
authored
Merge pull request doxygen#12162 from albert-github/feature/bug_dw_lang_change_settings
2 parents 33e0380 + 7f478bc commit 95a0ddc

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

addon/doxywizard/doxywizard.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,14 @@ void MainWindow::switchLanguage()
463463
qDebug() << "selected language" << langCode;
464464
if (langCode!=DoxygenWizard::langCode)
465465
{
466-
setLanguage(langCode);
467466
// Restart the application
468-
qApp->quit();
469-
QProcess::startDetached(qApp->arguments()[0], qApp->arguments().mid(1));
467+
if (discardUnsavedChanges())
468+
{
469+
setLanguage(langCode);
470+
saveSettings();
471+
qApp->quit();
472+
QProcess::startDetached(qApp->arguments()[0], qApp->arguments().mid(1));
473+
}
470474
}
471475
}
472476
}

0 commit comments

Comments
 (0)