diff --git a/mainwindow.cpp b/mainwindow.cpp index 78fea6c57..e41c3f97f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4545,9 +4545,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); }