mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-17 00:55:18 -04:00
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:
parent
94aec3766e
commit
b3f6d41f4b
@ -3895,8 +3895,13 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
bool bProcessMsgNormally=ui->respondComboBox->currentText()=="CQ: First" or
|
bool bProcessMsgNormally=ui->respondComboBox->currentText()=="CQ: First" or
|
||||||
(ui->respondComboBox->currentText()=="CQ: Max Dist" and m_ActiveStationsWidget==NULL) or
|
(ui->respondComboBox->currentText()=="CQ: Max Dist" and m_ActiveStationsWidget==NULL) or
|
||||||
(m_ActiveStationsWidget!=NULL and !m_ActiveStationsWidget->isVisible());
|
(m_ActiveStationsWidget!=NULL and !m_ActiveStationsWidget->isVisible());
|
||||||
QString t=decodedtext.messageWords()[4];
|
if (decodedtext.messageWords().length() >= 2) {
|
||||||
if(t.contains("R+") or t.contains("R-") or t=="R" or t=="RRR" or t=="RR73") bProcessMsgNormally=true;
|
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) {
|
if(bProcessMsgNormally) {
|
||||||
m_bDoubleClicked=true;
|
m_bDoubleClicked=true;
|
||||||
m_bAutoReply = true;
|
m_bAutoReply = true;
|
||||||
@ -3907,6 +3912,9 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
QString deCall;
|
QString deCall;
|
||||||
QString deGrid;
|
QString deGrid;
|
||||||
decodedtext.deCallAndGrid(/*out*/deCall,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
|
if(deGrid.contains(grid_regexp) or
|
||||||
(deGrid.contains("+") or deGrid.contains("-"))) {
|
(deGrid.contains("+") or deGrid.contains("-"))) {
|
||||||
int points=0;
|
int points=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user