From bc1ff9e2ddf29ecbccf5aaff203199a714d438ca Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sat, 29 Nov 2014 20:34:42 +0000 Subject: [PATCH] Keep UI in line with messages when clicking F4 When tab 2 is current the action of F4 is to set the next message to transmit the standard git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.4@4692 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index ecc4488e3..bafa829c1 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -785,8 +785,17 @@ void MainWindow::keyPressEvent( QKeyEvent *e ) //keyPressEvent ui->dxCallEntry->setText(""); ui->dxGridEntry->setText(""); genStdMsgs(""); - m_ntx=6; - ui->txrb6->setChecked(true); + if (1 == ui->tabWidget->currentIndex()) + { + ui->genMsg->setText(ui->tx6->text()); + m_ntx=7; + ui->rbGenMsg->setChecked(true); + } + else + { + m_ntx=6; + ui->txrb6->setChecked(true); + } return; case Qt::Key_F6: if(e->modifiers() & Qt::ShiftModifier) {