summaryrefslogtreecommitdiff
path: root/widgets/mainwindow_show_messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/mainwindow_show_messages.cpp')
-rw-r--r--widgets/mainwindow_show_messages.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/mainwindow_show_messages.cpp b/widgets/mainwindow_show_messages.cpp
index 6e7236d7..d4023f1b 100644
--- a/widgets/mainwindow_show_messages.cpp
+++ b/widgets/mainwindow_show_messages.cpp
@@ -15,6 +15,11 @@ void MainWindow::showSoundInError(const QString& errorMsg)
void MainWindow::showSoundOutError(const QString& errorMsg)
{
noteTxStopReason (TxEvidence::TxStopReason::Error);
+ if (m_jttyTxLifecycle.active () || !m_jttyTransmitQueue.empty ()) {
+ stopTx ();
+ m_jttyQueueNotice = errorMsg;
+ updateJttySendButton ();
+ }
if (m_splash && m_splash->isVisible ()) m_splash->hide ();
MessageBox::critical_message (this, tr ("Error in Sound Output"), errorMsg);
}