From a6be9789152a2213e29a74a0757b43ac64af5a90 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 5 Jun 2016 19:24:56 +0000 Subject: [PATCH] Ensure that tune specific Tx gain setting is not restored after it is cleared git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6733 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1d041f668..34fd29980 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4302,7 +4302,10 @@ void MainWindow::stop_tuning () m_bTxTime=false; m_tune=false; m_block_pwr_tooltip = true; - ui->outAttenuation->setValue(m_tune_attenuation_restore); + if (m_tune_attenuation) + { + ui->outAttenuation->setValue(m_tune_attenuation_restore); + } m_block_pwr_tooltip = false; }