From f683d47f5b628dd52017da004123d198d994e466 Mon Sep 17 00:00:00 2001 From: k9an Date: Tue, 2 Aug 2022 13:52:46 -0500 Subject: [PATCH] Fix a crash caused by calling Reset Cabrillo Log when Active Stations window is not open. Thanks to Mike W9MDB./wsjtx & --- widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 89d86711d..b8803c8fe 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -7344,7 +7344,7 @@ void MainWindow::on_reset_cabrillo_log_action_triggered () m_logBook.contest_log ()->reset (); m_activeCall.clear(); //Erase the QMap of active calls m_score=0; - m_ActiveStationsWidget->setScore(0); + if (m_ActiveStationsWidget) m_ActiveStationsWidget->setScore(0); } }