Skip to content

Commit

Permalink
don't call onQuit twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemrat committed Feb 26, 2016
1 parent ee4b984 commit 02cb68a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions systemtray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ void SystemTray::onQuit()

void SystemTray::onRedshiftQuit(int, QProcess::ExitStatus)
{
if (_warnOnRedshiftQuit)
QMessageBox::critical(0, QObject::tr("Fatal error"), QObject::tr("Redshift process has been terminated unexpectedly"));
if (!_warnOnRedshiftQuit)
return;

QMessageBox::critical(0, QObject::tr("Fatal error"), QObject::tr("Redshift process has been terminated unexpectedly"));
onQuit();
}

Expand Down

0 comments on commit 02cb68a

Please sign in to comment.