mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-03 09:44:24 -05: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
100c3d3121
commit
b19e329ce2
@ -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