Fixed buffered vs checksummed messages

This commit is contained in:
Jordan Sherer 2019-09-28 17:52:26 -04:00
parent 3a0e5341df
commit 587ec5ee3c

View File

@ -6291,13 +6291,10 @@ QList<QPair<QString, int>> MainWindow::buildMessageFrames(const QString &text){
m_nSubMode,
&info);
if(!info.dirCmd.isEmpty()){
qDebug() << "message contains cmd" << info.dirCmd;
if(Varicode::isCommandBuffered(info.dirCmd)){
// buffered commands should not allow typeahead
// TODO: jsherer - i don't like setting this here, but it works for now...
ui->extFreeTextMsgEdit->setReadOnly(true);
}
if(!info.dirCmd.isEmpty() && Varicode::isCommandChecksumed(info.dirCmd)){
// checksummed commands should not allow typeahead
// TODO: jsherer - i don't like setting this here, but it works for now...
ui->extFreeTextMsgEdit->setReadOnly(true);
}
#if 0