Fixed bug of disappearing text on enter keypress while transmitter is disabled

This commit is contained in:
Jordan Sherer 2020-04-26 13:50:03 -04:00
parent 220a05e69a
commit abfe7dd833

View File

@ -1031,6 +1031,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
if(pProcessed) *pProcessed = false; if(pProcessed) *pProcessed = false;
return; return;
} }
if(ui->extFreeTextMsgEdit->isReadOnly()){ if(ui->extFreeTextMsgEdit->isReadOnly()){
if(pProcessed) *pProcessed = false; if(pProcessed) *pProcessed = false;
return; return;
@ -1042,6 +1043,10 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
return; return;
} }
if(!ensureCanTransmit()){
return;
}
if(!ensureCallsignSet(true)){ if(!ensureCallsignSet(true)){
return; return;
} }