From dbce0cb8ee52875c80dc4eafae3c8ae618b56e5e Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 21 Nov 2017 20:08:10 +0000 Subject: [PATCH] Fix broken capability for adding noise to Tx signal. This should go into v1.8.1! git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8250 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 0b4187366..08bea4694 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4694,9 +4694,11 @@ void MainWindow::on_tx5_currentTextChanged (QString const& text) //tx5 edited void MainWindow::on_tx6_editingFinished() //tx6 edited { QString t=ui->tx6->text().toUpper(); - QString t1=t.split(" ").at(1); - m_CQtype="CQ"; - if(t1.size()==2) m_CQtype="CQ " + t1; + if(t.indexOf(" ")>0) { + QString t1=t.split(" ").at(1); + m_CQtype="CQ"; + if(t1.size()==2) m_CQtype="CQ " + t1; + } msgtype(t, ui->tx6); }