Re Sh and SWL: allow either or neither, but not both.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7459 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2017-01-06 19:01:29 +00:00
parent ab8c93dca9
commit 2698fc02c6
4 changed files with 25 additions and 5 deletions
+6 -3
View File
@@ -4178,7 +4178,6 @@ void MainWindow::displayWidgets(int n)
}
if(i==23) {
ui->cbSWL->setVisible(b);
ui->cbSWL->setEnabled(b and ui->cbShMsgs->isChecked());
}
j=j>>1;
}
@@ -5569,9 +5568,8 @@ void MainWindow::on_cbFast9_clicked(bool b)
void MainWindow::on_cbShMsgs_toggled(bool b)
{
ui->cbTx6->setEnabled(b);
ui->cbSWL->setEnabled(b);
m_bShMsgs=b;
if(!b) ui->cbSWL->setChecked(false);
if(b) ui->cbSWL->setChecked(false);
if(m_bShMsgs and (m_mode=="MSK144")) ui->rptSpinBox->setValue(1);
int itone0=itone[0];
int ntx=m_ntx;
@@ -5585,6 +5583,11 @@ void MainWindow::on_cbShMsgs_toggled(bool b)
if(ntx==6) ui->txrb6->setChecked(true);
}
void MainWindow::on_cbSWL_toggled(bool b)
{
if(b) ui->cbShMsgs->setChecked(false);
}
void MainWindow::on_cbTx6_toggled(bool b)
{
QString t;