mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-23 19:25:37 -05:00
Fix two bad behaviors following double-click on a decode.
1. Make it work even if second callsign is not that of present QSO partner. 2. Sequence to Tx4 if message contains R+report.
This commit is contained in:
parent
c57b5d3fca
commit
48017c5827
@ -4148,7 +4148,7 @@ void MainWindow::doubleClickOnCall2(Qt::KeyboardModifiers modifiers)
|
||||
void MainWindow::doubleClickOnCall(Qt::KeyboardModifiers modifiers)
|
||||
{
|
||||
if(!(modifiers & Qt::AltModifier) and m_transmitting) {
|
||||
// qDebug() << "aa" << "Double-click ignored";
|
||||
// qDebug() << "aa" << "Double-click on decode is ignored while transmitting";
|
||||
return;
|
||||
}
|
||||
QTextCursor cursor;
|
||||
@ -4351,7 +4351,8 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
|
||||
|
||||
if(message_words.size () > 3 // enough fields for a normal message
|
||||
&& (message_words.at(1).contains(m_baseCall) || "DE" == message_words.at(1))
|
||||
&& (message_words.at(2).contains(qso_partner_base_call) or bEU_VHF_w2)) {
|
||||
// && (message_words.at(2).contains(qso_partner_base_call) or bEU_VHF_w2)) {
|
||||
&& (message_words.at(2).contains(qso_partner_base_call) or m_bDoubleClicked or bEU_VHF_w2)) {
|
||||
|
||||
if(message_words.at(3).contains(grid_regexp) and SpecOp::EU_VHF!=m_config.special_op_id()) {
|
||||
if(SpecOp::NA_VHF==m_config.special_op_id()){
|
||||
@ -4443,8 +4444,13 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
|
||||
gen_msg=setTxMsg(2);
|
||||
m_QSOProgress=REPORT;
|
||||
} else {
|
||||
gen_msg=setTxMsg(3);
|
||||
m_QSOProgress=ROGER_REPORT;
|
||||
if(r.left(2)=="R-" or r.left(2)=="R+") {
|
||||
gen_msg=setTxMsg(4);
|
||||
m_QSOProgress=ROGERS;
|
||||
} else {
|
||||
gen_msg=setTxMsg(3);
|
||||
m_QSOProgress=ROGER_REPORT;
|
||||
}
|
||||
}
|
||||
} else { // nothing for us
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user