From 661265ae0f0945853527b81a1b7f3dbcaf23b013 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 18 Jan 2014 16:56:45 +0000 Subject: [PATCH] Force Tune=OFF when exiting the txTune window. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@3651 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 2 +- txtune.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 6cca43788..50f82d6c2 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//--------------------------------------------------------------- MainWindow +//---------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h" diff --git a/txtune.cpp b/txtune.cpp index 43bf969e8..a6b1fdb84 100644 --- a/txtune.cpp +++ b/txtune.cpp @@ -21,11 +21,13 @@ TxTune::~TxTune() void TxTune::accept() { + if(bTune) on_pbTune_clicked(); QDialog::accept(); } void TxTune::reject() { + if(bTune) on_pbTune_clicked(); set_iqAmp(m_saveAmp); set_iqPhase(m_savePha); set_txPower(m_saveTxPower);