Allow static 4-digit numbers as FT RU exchanges instead of serial numbers. This extends the usability of the FT RU protocol for other contest types.

This commit is contained in:
Uwe Risse 2023-07-11 21:25:11 +02:00
parent 54e46d90f2
commit 99876a1916
2 changed files with 4 additions and 0 deletions

View File

@ -245,6 +245,7 @@ namespace
|X85|X86|X87|X88|X89|X90|X91
|X92|X93|X94|X95|X96|X97|X98
|X99
|[0-9][0-9][0-9][0-9] # 4-digit numbers
)
)", QRegularExpression::CaseInsensitiveOption | QRegularExpression::ExtendedPatternSyntaxOption};

View File

@ -6102,6 +6102,9 @@ void MainWindow::genStdMsgs(QString rpt, bool unconditional)
t1 = t1.asprintf("%4.4d",ui->sbSerialNumber->value());
sent=rst + t1;
}
if(t1.contains(QRegularExpression {"\\d\\d\\d\\d"})) {
t1 = m_config.RTTY_Exchange();
}
}
if(SpecOp::EU_VHF==m_specOp) {
QString a;