File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -989,17 +989,19 @@ void SettingsHandler::Clear()
989989
990990void SettingsHandler::Quit (bool restart)
991991{
992+ if (restart) {
993+ Restart ();
994+ return ;
995+ }
992996 QStringList arguments = qApp->arguments ().mid (1 );
993997 QCoreApplication::quit ();
994- if (restart)
995- Restart ();
996998}
997999
9981000void SettingsHandler::Restart ()
9991001{
10001002
10011003#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
1002- emit instance ()->messageSend (" Restarting: " +QCoreApplication::applicationFilePath (), XLogLevel::Information);
1004+ // emit instance()->messageSend("Restarting: "+QCoreApplication::applicationFilePath(), XLogLevel::Information);
10031005 QStringList arguments = qApp->arguments ().mid (1 );
10041006 QCoreApplication::quit ();
10051007 QProcess::startDetached (QCoreApplication::applicationFilePath (), arguments);
You can’t perform that action at this time.
0 commit comments