Corrected logic in on_aboutToQuit().

processEvents() should occur before msleep(), so that the Notify gets
displayed properly.  msleep() before process events did not cause the
Notify to occur in opensuse Linux.  Instead, an empty Notify appeared.
This commit is contained in:
Bob Kenny 2016-01-04 01:48:40 -05:00
parent 1a7473d328
commit edd7ef95dd

View File

@ -490,8 +490,8 @@ void loadChannels()
void MainWindow::on_aboutToQuit()
{
Notify(QObject::tr("Don't forget to place your datacard back in your CPAP machine"), QObject::tr("SleepyHead Reminder"));
QThread::msleep(1000);
QApplication::processEvents();
QThread::msleep(1000);
}
void MainWindow::closeEvent(QCloseEvent * event)