Make sure that m_Nslots is really changed.

This commit is contained in:
Uwe Risse 2024-09-23 12:58:20 +02:00
parent be021f0d01
commit 24ea7d0e6a

View File

@ -2675,8 +2675,10 @@ void MainWindow::statusChanged()
ui->sbNslots->setVisible(true); ui->sbNslots->setVisible(true);
if(ui->cbSendMsg->isChecked()) { if(ui->cbSendMsg->isChecked()) {
ui->sbNslots->setValue(2); ui->sbNslots->setValue(2);
m_Nslots=2;
} else { } else {
ui->sbNslots->setValue(5); ui->sbNslots->setValue(5);
m_Nslots=5;
} }
} else { } else {
ui->sbNslots->setVisible(true); ui->sbNslots->setVisible(true);
@ -9223,8 +9225,10 @@ void MainWindow::on_cbSendMsg_toggled(bool b)
return; // don't do anything with slot values unless SuperFox mode return; // don't do anything with slot values unless SuperFox mode
if(b) { if(b) {
ui->sbNslots->setValue(2); ui->sbNslots->setValue(2);
m_Nslots=2;
} else { } else {
ui->sbNslots->setValue(5); ui->sbNslots->setValue(5);
m_Nslots=5;
} }
} }