mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
fixup! Handled some potentially "dangerous" parsing issues for VATSIM file (no coordinate)
This commit is contained in:
@@ -300,7 +300,8 @@ namespace BlackCore
|
|||||||
Q_ASSERT_X((validPos && posMsg.isEmpty()) || (!validPos && !posMsg.isEmpty()), Q_FUNC_INFO, "Inconsisten data");
|
Q_ASSERT_X((validPos && posMsg.isEmpty()) || (!validPos && !posMsg.isEmpty()), Q_FUNC_INFO, "Inconsisten data");
|
||||||
if (!posMsg.isEmpty())
|
if (!posMsg.isEmpty())
|
||||||
{
|
{
|
||||||
CLogMessage(this).validationWarning(u"Callsign '%1' %2") << callsign << posMsg.join(", ");
|
// Only info not to flood lof with warning
|
||||||
|
CLogMessage(this).validationInfo(u"Callsign '%1' %2") << callsign << posMsg.join(", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
const CFrequency frequency = CFrequency(clientPartsMap["frequency"].toDouble(), CFrequencyUnit::MHz());
|
const CFrequency frequency = CFrequency(clientPartsMap["frequency"].toDouble(), CFrequencyUnit::MHz());
|
||||||
|
|||||||
Reference in New Issue
Block a user