Fixed APRS passcode warning

This commit is contained in:
Jordan Sherer 2018-10-17 14:30:32 -04:00
parent 7e903349ae
commit 23a554220b
2 changed files with 5 additions and 7 deletions

View File

@ -5310,6 +5310,11 @@ void MainWindow::createMessage(QString const& text){
return;
}
if(text.contains(" APRS:") && !m_aprsClient->isPasscodeValid()){
MessageBox::warning_message(this, tr ("Please ensure a valid APRS passcode is set in the settings when sending an APRS packet."));
return;
}
resetMessageTransmitQueue();
createMessageTransmitQueue(text);
}

View File

@ -1673,13 +1673,6 @@ QStringList Varicode::buildMessageFrames(
}
qDebug() << "after:" << line;
}
#if 0
// APRS:
if(dirCmd.trimmed() == "APRS:" && !m_aprsClient->isPasscodeValid()){
MessageBox::warning_message(this, tr ("Please enter a valid APRS passcode in the settings to send an APRS packet."));
}
#endif
}
if(useDat){