From f6c608b22784ba5ea581f8250ab45170958d884a Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 19 Mar 2022 16:15:51 -0400 Subject: [PATCH] Don't try to erase if widget was not started! --- widgets/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index e08630dd4..3fc17b918 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -7466,7 +7466,8 @@ void MainWindow::handle_transceiver_update (Transceiver::TransceiverState const& if (m_lastDialFreq != m_freqNominal && (m_mode != "MSK144" || !(ui->cbCQTx->isEnabled () && ui->cbCQTx->isVisible () && ui->cbCQTx->isChecked()))) { - if(m_lastDialFreq != m_freqNominal and m_ActiveStationsWidget->isVisible()) { + + if(m_lastDialFreq != m_freqNominal and m_ActiveStationsWidget != NULL) { m_recentCall.clear(); m_ActiveStationsWidget->erase(); }