From d53085b5525021927cc194b44a043096d7236c72 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 22 Nov 2016 15:47:59 +0000 Subject: [PATCH] Correct a flaw that could cause Tx to start as a result of a decode with AutoSeq active. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7329 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 5 ++++- mainwindow.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index e3b47a33d..b3e993139 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -818,6 +818,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, m_bAltV=false; m_bNoMoreFiles=false; m_bVHFwarned=false; + m_bDoubleClicked=false; m_wait=0; ui->txrb1->setChecked(true); @@ -3231,6 +3232,7 @@ void MainWindow::doubleClickOnCall(bool shift, bool ctrl) if(!m_decodedText2) messages= ui->decodedTextBrowser2->toPlainText(); if(m_decodedText2) messages= ui->decodedTextBrowser->toPlainText(); if(ui->cbCQRx->isChecked()) m_bDoubleClickAfterCQnnn=true; + m_bDoubleClicked=true; processMessage(messages, position, ctrl); } @@ -3504,7 +3506,8 @@ void MainWindow::processMessage(QString const& messages, int position, bool ctrl } } if(m_transmitting) m_restart=true; - if(m_config.quick_call()) auto_tx_mode(true); + if(m_config.quick_call() and m_bDoubleClicked) auto_tx_mode(true); + m_bDoubleClicked=false; } void MainWindow::genStdMsgs(QString rpt) diff --git a/mainwindow.h b/mainwindow.h index ea0574b33..921dba792 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -423,6 +423,7 @@ private: bool m_bAltV; bool m_bNoMoreFiles; bool m_bQRAsyncWarned; + bool m_bDoubleClicked; float m_pctZap; int m_ihsym;