Skip to content

Commit f8a8246

Browse files
committed
Remove message on restart
1 parent ec5cbc5 commit f8a8246

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/lib/handler/settingshandler.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -989,17 +989,19 @@ void SettingsHandler::Clear()
989989

990990
void 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

9981000
void 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);

0 commit comments

Comments
 (0)