From 7c2ededab692392d229120e12c50e1f5b4f86af0 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Thu, 5 May 2016 01:32:16 +0000 Subject: [PATCH] Do not act on double clicks of empty decode window lines Tx period was erroneously being forced to odd/2nd. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6670 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index b136cf298..d1482b53c 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2858,9 +2858,6 @@ void MainWindow::processMessage(QString const& messages, int position, bool ctrl } } decodedtext = t2a; - int nmod=ntsec % (2*m_TRperiod); - m_txFirst=(nmod!=0); - ui->txFirstCheckBox->setChecked(m_txFirst); if (decodedtext.indexOf(" CQ ") > 0) { // TODO this magic 36 characters is also referenced in DisplayText::_appendDXCCWorkedB4() @@ -2874,6 +2871,10 @@ void MainWindow::processMessage(QString const& messages, int position, bool ctrl auto t4 = t3.replace (" CQ DX ", " CQ_DX ").split (" ", QString::SkipEmptyParts); if(t4.size () < 6) return; //Skip the rest if no decoded text + int nmod=ntsec % (2*m_TRperiod); + m_txFirst=(nmod!=0); + ui->txFirstCheckBox->setChecked(m_txFirst); + QString hiscall; QString hisgrid; decodedtext.deCallAndGrid(/*out*/hiscall,hisgrid);