From ed80b9c7e4c6b5b14a05d636c72c92b8117dd520 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 4 Apr 2019 12:47:10 -0400 Subject: [PATCH] Remove "TU; " from a double-clicked message before processing it. --- widgets/mainwindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 0b4b20b7b..47bc4a2cf 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -4314,7 +4314,7 @@ void MainWindow::doubleClickOnCall(Qt::KeyboardModifiers modifiers) } return; } - DecodedText message {cursor.block().text()}; + DecodedText message {cursor.block().text().trimmed().remove("TU; ")}; m_bDoubleClicked = true; processMessage (message, modifiers); } @@ -4325,7 +4325,6 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie auto shift = modifiers.testFlag (Qt::ShiftModifier); auto ctrl = modifiers.testFlag (Qt::ControlModifier); // auto alt = modifiers.testFlag (Qt::AltModifier); - // basic mode sanity checks auto const& parts = message.string ().split (' ', QString::SkipEmptyParts); if (parts.size () < 5) return; @@ -4545,7 +4544,6 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie } else { m_bTUmsg=false; m_nextCall=""; //### Temporary: disable use of "TU;" message - if(SpecOp::RTTY == m_config.special_op_id() and m_nextCall!="") { // We're in RTTY contest and have "nextCall" queued up: send a "TU; ..." message logQSOTimer.start(0);