From 0e8f58e54cb8ff6280366c62a36d971f4107672b Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sat, 28 Mar 2020 22:46:51 -0400 Subject: [PATCH] Fixed confirmation modality and default behavior --- mainwindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 48d4716..0402d97 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -6619,13 +6619,12 @@ void MainWindow::confirmThenEnqueueMessage(int timeout, int priority, QString me // make sure we delete the message box later... m->deleteLater(); - if(result != QMessageBox::Yes){ - return; + if(m->result() == QMessageBox::Yes){ + enqueueMessage(priority, message, freq, c); } - - enqueueMessage(priority, message, freq, c); }); + m->setWindowModality(Qt::NonModal); m->show(); }