From abfe7dd8331da0603650d99fe4c5570e2ffd79f5 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sun, 26 Apr 2020 13:50:03 -0400 Subject: [PATCH] Fixed bug of disappearing text on enter keypress while transmitter is disabled --- mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 60bbdc0..ca66b76 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1031,6 +1031,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, if(pProcessed) *pProcessed = false; return; } + if(ui->extFreeTextMsgEdit->isReadOnly()){ if(pProcessed) *pProcessed = false; return; @@ -1042,6 +1043,10 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, return; } + if(!ensureCanTransmit()){ + return; + } + if(!ensureCallsignSet(true)){ return; }