diff --git a/mainwindow.cpp b/mainwindow.cpp index 8c97bda..5bf57a3 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -298,8 +298,8 @@ void MainWindow::guiUpdate() if (rigGet.onoff == RIG_POWER_ON || rigGet.onoff == RIG_POWER_UNKNOWN) ui->pushButton_Power->setChecked(true); //* VFOs - ui->lineEdit_vfoMain->setValue(rigGet.freqMain); - ui->lineEdit_vfoSub->setValue(rigGet.freqSub); + if (!rigCmd.freqMain) ui->lineEdit_vfoMain->setValue(rigGet.freqMain); + if (!rigCmd.freqSub) ui->lineEdit_vfoSub->setValue(rigGet.freqSub); ui->label_vfoMain->setText(rig_strvfo(rigGet.vfoMain)); switch (rigGet.vfoMain) diff --git a/mainwindow.ui b/mainwindow.ui index 6442681..ba22782 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -769,9 +769,9 @@ - 472 + 462 220 - 131 + 141 204 @@ -889,7 +889,7 @@ - 280 + 270 220 191 191 @@ -1657,7 +1657,7 @@ 13 10 - 291 + 301 81