mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
Minor adjustment to identify section causing issue in VATSIM file
This commit is contained in:
committed by
Mathew Sutcliffe
parent
93a18f433c
commit
3e4c0a0c2a
@@ -451,10 +451,12 @@ namespace BlackCore
|
||||
const QStringList clientParts = currentLine.split(':');
|
||||
for (int i = 0; i < clientSectionAttributes.size(); i++)
|
||||
{
|
||||
BLACK_VERIFY_X(i < clientSectionAttributes.size(), Q_FUNC_INFO, "Wrong section attribute size");
|
||||
// section attributes are the column names
|
||||
// more column names than parts
|
||||
const QString attribute(clientSectionAttributes.at(i).toLower());
|
||||
BLACK_VERIFY_X(i < clientParts.size(), Q_FUNC_INFO, "Wrong parts size");
|
||||
if (i < clientSectionAttributes.size() || i < clientParts.size()) { continue; }
|
||||
parts.insert(clientSectionAttributes.at(i).toLower(), clientParts.at(i));
|
||||
parts.insert(attribute, clientParts.at(i));
|
||||
}
|
||||
return parts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user