mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-01 16:13:57 -04:00
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
This commit is contained in:
parent
9a9e5c3d90
commit
5536f72c17
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user