From 53d0e97a3a8ec71a70718c8e3a2d43258f04378e Mon Sep 17 00:00:00 2001 From: PianetaRadio <78976006+PianetaRadio@users.noreply.github.com> Date: Sun, 6 Nov 2022 00:52:40 +0100 Subject: [PATCH] Add files via upload --- mainwindow.cpp | 4 ++-- mainwindow.ui | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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