From f8e51d4e62320671f3fd162f8d0fe35e417ce83f Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sat, 29 Nov 2014 20:35:58 +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 Merged from branch wsjtx-1.4. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4693 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 6ce4f3fc4..265cda46d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -794,8 +794,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) {