From 074f6866bd777ce44d54213454871ac3f7875268 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Wed, 26 Jul 2017 01:39:11 +0000 Subject: [PATCH] Fix highlighting of the call first check box label git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7951 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1e1346a73..af02a6fdc 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3114,7 +3114,7 @@ void MainWindow::guiUpdate() m_bCallingCQ = CALLING == m_QSOProgress || m_currentMessage.contains (QRegularExpression {"^(CQ|QRZ) "}); if(m_mode=="FT8") { - if(m_bCallingCQ) { + if(m_bCallingCQ && ui->cbFirst->isVisible () && ui->cbFirst->isChecked ()) { ui->cbFirst->setStyleSheet("QCheckBox{color:red}"); } else { ui->cbFirst->setStyleSheet(""); @@ -6679,7 +6679,15 @@ void MainWindow::on_cbMenus_toggled(bool b) void MainWindow::on_cbFirst_toggled(bool b) { - if(b) ui->cbWeak->setChecked(!b); + if (b) { + ui->cbWeak->setChecked (!b); + if (m_auto && CALLING == m_QSOProgress) { + ui->cbFirst->setStyleSheet ("QCheckBox{color:red}"); + } + } + else { + ui->cbFirst->setStyleSheet (""); + } } void MainWindow::on_cbWeak_toggled(bool b)