mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-15 08:31:57 -05:00
Remove "TU; " from a double-clicked message before processing it.
This commit is contained in:
parent
dac988d4ca
commit
ed80b9c7e4
@ -4314,7 +4314,7 @@ void MainWindow::doubleClickOnCall(Qt::KeyboardModifiers modifiers)
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
DecodedText message {cursor.block().text()};
|
DecodedText message {cursor.block().text().trimmed().remove("TU; ")};
|
||||||
m_bDoubleClicked = true;
|
m_bDoubleClicked = true;
|
||||||
processMessage (message, modifiers);
|
processMessage (message, modifiers);
|
||||||
}
|
}
|
||||||
@ -4325,7 +4325,6 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
|
|||||||
auto shift = modifiers.testFlag (Qt::ShiftModifier);
|
auto shift = modifiers.testFlag (Qt::ShiftModifier);
|
||||||
auto ctrl = modifiers.testFlag (Qt::ControlModifier);
|
auto ctrl = modifiers.testFlag (Qt::ControlModifier);
|
||||||
// auto alt = modifiers.testFlag (Qt::AltModifier);
|
// auto alt = modifiers.testFlag (Qt::AltModifier);
|
||||||
|
|
||||||
// basic mode sanity checks
|
// basic mode sanity checks
|
||||||
auto const& parts = message.string ().split (' ', QString::SkipEmptyParts);
|
auto const& parts = message.string ().split (' ', QString::SkipEmptyParts);
|
||||||
if (parts.size () < 5) return;
|
if (parts.size () < 5) return;
|
||||||
@ -4545,7 +4544,6 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
|
|||||||
} else {
|
} else {
|
||||||
m_bTUmsg=false;
|
m_bTUmsg=false;
|
||||||
m_nextCall=""; //### Temporary: disable use of "TU;" message
|
m_nextCall=""; //### Temporary: disable use of "TU;" message
|
||||||
|
|
||||||
if(SpecOp::RTTY == m_config.special_op_id() and m_nextCall!="") {
|
if(SpecOp::RTTY == m_config.special_op_id() and m_nextCall!="") {
|
||||||
// We're in RTTY contest and have "nextCall" queued up: send a "TU; ..." message
|
// We're in RTTY contest and have "nextCall" queued up: send a "TU; ..." message
|
||||||
logQSOTimer.start(0);
|
logQSOTimer.start(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user