This code ensures that the height of the control panel is initialized correctly when SuperFox controls are hidden.

This commit is contained in:
Uwe Risse 2024-05-18 14:09:20 +02:00
parent 5dcc224252
commit 4509b12937

View File

@ -1448,7 +1448,12 @@ void MainWindow::readSettings()
ui->sbCQTxFreq->setValue (m_settings->value ("CQTxFreq", 260).toInt());
m_noSuffix=m_settings->value("NoSuffix",false).toBool();
int n=m_settings->value("GUItab",0).toInt();
ui->tabWidget->setCurrentIndex(n);
if (SpecOp::FOX==m_specOp) {
ui->tabWidget->setCurrentIndex(n);
} else {
ui->tabWidget->setCurrentIndex(1); // needed for GUI initialisation when SuperFox controls are invisible
ui->tabWidget->setCurrentIndex(n);
}
outBufSize=m_settings->value("OutBufSize",4096).toInt();
ui->cbHoldTxFreq->setChecked (m_settings->value ("HoldTxFreq", false).toBool ());
m_pwrBandTxMemory=m_settings->value("pwrBandTxMemory").toHash();