mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 03:35:38 +08:00
Fix ATIS not updating: change return to continue in updateAtisMap
Co-authored-by: ltoenning <1716810+ltoenning@users.noreply.github.com>
This commit is contained in:
@@ -2433,9 +2433,9 @@ namespace swift::core::fsd
|
|||||||
//! \fixme: Anything better as this stupid code here?
|
//! \fixme: Anything better as this stupid code here?
|
||||||
thread_local const QRegularExpression RegExp(R"([\n\t\r])");
|
thread_local const QRegularExpression RegExp(R"([\n\t\r])");
|
||||||
const QString test = fixed.toLower().remove(RegExp);
|
const QString test = fixed.toLower().remove(RegExp);
|
||||||
if (test == "z") return;
|
if (test == "z") continue;
|
||||||
if (test.startsWith("z") && test.length() == 2) return; // z1, z2, ..
|
if (test.startsWith("z") && test.length() == 2) continue; // z1, z2, ..
|
||||||
if (test.length() == 1) return; // sometimes just z
|
if (test.length() == 1) continue; // sometimes just z
|
||||||
|
|
||||||
// append
|
// append
|
||||||
if (!atisMessage.isEmpty()) atisMessage.appendMessage("\n");
|
if (!atisMessage.isEmpty()) atisMessage.appendMessage("\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user