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
This commit is contained in:
Bill Somerville 2017-07-26 01:39:11 +00:00
parent 5864c04d26
commit 074f6866bd

View File

@ -3114,7 +3114,7 @@ void MainWindow::guiUpdate()
m_bCallingCQ = CALLING == m_QSOProgress m_bCallingCQ = CALLING == m_QSOProgress
|| m_currentMessage.contains (QRegularExpression {"^(CQ|QRZ) "}); || m_currentMessage.contains (QRegularExpression {"^(CQ|QRZ) "});
if(m_mode=="FT8") { if(m_mode=="FT8") {
if(m_bCallingCQ) { if(m_bCallingCQ && ui->cbFirst->isVisible () && ui->cbFirst->isChecked ()) {
ui->cbFirst->setStyleSheet("QCheckBox{color:red}"); ui->cbFirst->setStyleSheet("QCheckBox{color:red}");
} else { } else {
ui->cbFirst->setStyleSheet(""); ui->cbFirst->setStyleSheet("");
@ -6679,7 +6679,15 @@ void MainWindow::on_cbMenus_toggled(bool b)
void MainWindow::on_cbFirst_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) void MainWindow::on_cbWeak_toggled(bool b)