From 4509b1293730cc25e0e1d4affca9370aa76d7a29 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Sat, 18 May 2024 14:09:20 +0200 Subject: [PATCH] This code ensures that the height of the control panel is initialized correctly when SuperFox controls are hidden. --- widgets/mainwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 14af57d05..ec6ffde09 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -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();