fixup! Handled some potentially "dangerous" parsing issues for VATSIM file (no coordinate)

This commit is contained in:
Klaus Basan
2019-06-29 20:54:14 +02:00
parent b3be42da45
commit a0131bb48c

View File

@@ -300,7 +300,8 @@ namespace BlackCore
Q_ASSERT_X((validPos && posMsg.isEmpty()) || (!validPos && !posMsg.isEmpty()), Q_FUNC_INFO, "Inconsisten data");
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());