mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-19 04:00:45 +00:00
Merge branch 'master' of http://gitlab.jedimark.net/code/sleepyhead
This commit is contained in:
commit
91e485bb3c
@ -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