mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 11:40:42 +00:00
Shut down properly on RestartApplication on Windows/Linux
This commit is contained in:
parent
f3dbaab165
commit
8559fbdb09
@ -2013,8 +2013,9 @@ void MainWindow::RestartApplication(bool force_login, QString cmdline)
|
|||||||
//if (change_datafolder) { args << "-d"; }
|
//if (change_datafolder) { args << "-d"; }
|
||||||
|
|
||||||
if (QProcess::startDetached(apppath, args)) {
|
if (QProcess::startDetached(apppath, args)) {
|
||||||
::exit(0);
|
QApplication::instance()->exit();
|
||||||
//QApplication::instance()->exit();
|
|
||||||
|
// ::exit(0);
|
||||||
} else { QMessageBox::warning(nullptr, tr("Gah!"), tr("If you can read this, the restart command didn't work. Your going to have to do it yourself manually."), QMessageBox::Ok); }
|
} else { QMessageBox::warning(nullptr, tr("Gah!"), tr("If you can read this, the restart command didn't work. Your going to have to do it yourself manually."), QMessageBox::Ok); }
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user