Fix a bug in Hound mode for decodes without a grid or 3rd part of the message. Patch by Mike W9MDB.

This commit is contained in:
Uwe Risse 2022-11-20 10:24:55 +01:00
parent 94aec3766e
commit b3f6d41f4b

View File

@ -3895,8 +3895,13 @@ void MainWindow::readFromStdout() //readFromStdout
bool bProcessMsgNormally=ui->respondComboBox->currentText()=="CQ: First" or
(ui->respondComboBox->currentText()=="CQ: Max Dist" and m_ActiveStationsWidget==NULL) or
(m_ActiveStationsWidget!=NULL and !m_ActiveStationsWidget->isVisible());
QString t=decodedtext.messageWords()[4];
if(t.contains("R+") or t.contains("R-") or t=="R" or t=="RRR" or t=="RR73") bProcessMsgNormally=true;
if (decodedtext.messageWords().length() >= 2) {
QString t=decodedtext.messageWords()[2];
if(t.contains("R+") or t.contains("R-") or t=="R" or t=="RRR" or t=="RR73") bProcessMsgNormally=true;
}
else {
bProcessMsgNormally=true;
}
if(bProcessMsgNormally) {
m_bDoubleClicked=true;
m_bAutoReply = true;
@ -3907,6 +3912,9 @@ void MainWindow::readFromStdout() //readFromStdout
QString deCall;
QString deGrid;
decodedtext.deCallAndGrid(/*out*/deCall,deGrid);
// if they dont' send their grid we'll use ours and assume dx=0
if (deGrid.length() == 0) deGrid = m_config.my_grid();
if(deGrid.contains(grid_regexp) or
(deGrid.contains("+") or deGrid.contains("-"))) {
int points=0;