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
This commit is contained in:
Joe Taylor 2014-01-18 16:56:45 +00:00
parent 21f3a4207a
commit 661265ae0f
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
//--------------------------------------------------------------- MainWindow //---------------------------------------------------------------- MainWindow
#include "mainwindow.h" #include "mainwindow.h"
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
#include "devsetup.h" #include "devsetup.h"

View File

@ -21,11 +21,13 @@ TxTune::~TxTune()
void TxTune::accept() void TxTune::accept()
{ {
if(bTune) on_pbTune_clicked();
QDialog::accept(); QDialog::accept();
} }
void TxTune::reject() void TxTune::reject()
{ {
if(bTune) on_pbTune_clicked();
set_iqAmp(m_saveAmp); set_iqAmp(m_saveAmp);
set_iqPhase(m_savePha); set_iqPhase(m_savePha);
set_txPower(m_saveTxPower); set_txPower(m_saveTxPower);