From b19e329ce23890f5a284ca9d5312eac24820ed4e Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Wed, 29 Jun 2016 23:11:54 +0000 Subject: [PATCH] Alert using the platform desktop mechanism for messages Message boxes and accepted incomming UDP actions alert the user even if the application is hidden. This does not steal focus as that is considered bad practice and is annoying. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6826 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 8b2b32010..fbe3fc124 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1653,6 +1653,7 @@ void MainWindow::on_stopButton_clicked() //stopButton void MainWindow::msgBox(QString t) //msgBox { msgBox0.setText(t); + QApplication::alert (this); msgBox0.exec(); } @@ -5074,6 +5075,7 @@ void MainWindow::replyToCQ (QTime time, qint32 snr, float delta_time, quint32 de // find the linefeed at the end of the line position = ui->decodedTextBrowser->toPlainText().indexOf("\n",position); processMessage (messages, position, false); + QApplication::alert (this); } else {