Fix for stuff removed by rigcreator

rigcreator
Phil Taylor 2023-05-03 19:20:32 +01:00
rodzic 6f4a023084
commit 1eaec61f97
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -4573,14 +4573,17 @@ void rigCommander::determineRigCaps()
// Setup memory formats.
static QRegularExpression memFmtEx("%(?<flags>[-+#0])?(?<pos>\\d+|\\*)?(?:\\.(?<width>\\d+|\\*))?(?<spec>[abcdefghijklmnopqrstuvwxyz])");
QRegularExpressionMatchIterator i = memFmtEx.globalMatch(rigCaps.memFormat);
while (i.hasNext()) {
QRegularExpressionMatch qmatch = i.next();
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
if (qmatch.hasCaptured("spec") && qmatch.hasCaptured("pos") && qmatch.hasCaptured("width")) {
#endif
rigCaps.memParser.append(memParserFormat(qmatch.captured("spec").at(0).toLatin1(),qmatch.captured("pos").toInt(),qmatch.captured("width").toInt()));
}
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
}
#endif
QRegularExpressionMatchIterator i2 = memFmtEx.globalMatch(rigCaps.satFormat);
while (i2.hasNext()) {