IMproved logic for when DX Grid is edited or cleared.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3486 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2013-07-15 21:13:45 +00:00
parent d612225804
commit deafce098a

View File

@ -908,6 +908,8 @@ void MainWindow::keyPressEvent( QKeyEvent *e ) //keyPressEvent
ui->dxCallEntry->setText("");
ui->dxGridEntry->setText("");
genStdMsgs("");
m_ntx=6;
ui->txrb6->setChecked(true);
break;
case Qt::Key_F6:
if(e->modifiers() & Qt::ShiftModifier) {
@ -2415,14 +2417,6 @@ void MainWindow::on_dxGridEntry_textChanged(const QString &t) //dxGrid changed
if(n!=4 and n!=6) {
ui->labAz->setText("");
ui->labDist->setText("");
ui->tx1->setText("");
ui->tx2->setText("");
ui->tx3->setText("");
ui->tx4->setText("");
ui->tx5->setText("");
ui->tx6->setText("");
ui->genMsg->setText("");
ui->freeTextMsg->setText("");
return;
}
if(!t[0].isLetter() or !t[1].isLetter()) return;