mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 12:40:43 +00:00
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:
parent
1a7473d328
commit
edd7ef95dd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user