From 3a3645b5de32de8848aedecf5e2506fa18b68752 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 7 Oct 2014 16:44:29 +0000 Subject: [PATCH] Correct the "dB" message on Tab 2 when MyCall is a compound callsign. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4485 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index e279d78ea..1c091a9cb 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2598,7 +2598,11 @@ void MainWindow::on_pbCallCQ_clicked() void MainWindow::on_pbAnswerCaller_clicked() { genStdMsgs(m_rpt); - ui->genMsg->setText(ui->tx2->text()); + QString t=ui->tx3->text(); + int i0=t.indexOf(" R-"); + if(i0<0) i0=t.indexOf(" R+"); + t=t.mid(0,i0+1)+t.mid(i0+2,3); + ui->genMsg->setText(t); m_ntx=7; ui->rbGenMsg->setChecked(true); if(m_transmitting) m_restart=true;