From 2173147077b398b4d5484d1400fec81882c6d987 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 15 Jul 2013 22:55:32 +0000 Subject: [PATCH] Fix a new (and annoying) bug: program refuses to start if "+2 kHz" was checked on the previous program termination. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3487 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 7fcfc4c95..297d0e662 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -45,7 +45,6 @@ MainWindow::MainWindow(QSharedMemory *shdmem, QWidget *parent) : ui(new Ui::MainWindow) { ui->setupUi(this); - on_EraseButton_clicked(); QActionGroup* paletteGroup = new QActionGroup(this); ui->actionCuteSDR->setActionGroup(paletteGroup); @@ -2713,8 +2712,10 @@ void MainWindow::on_bandComboBox_activated(int index) ret=rig->setFreq(MHz(m_dialFreq)); if(m_bSplit or m_bXIT) setXIT(m_txFreq); - bumpFqso(11); - bumpFqso(12); + if(g_pWideGraph!=NULL) { + bumpFqso(11); + bumpFqso(12); + } if(ret!=RIG_OK) { rt.sprintf("Set rig frequency failed: %d",ret); msgBox(rt);