mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Ref T201, fixes for info object overview
* more detailed log info
* sort info objects so the correct value is obtained ("raw" names)
* check both "duplicate" strings
This commit is contained in:
@@ -367,7 +367,7 @@ namespace BlackMisc
|
||||
bool CAircraftIcaoCode::isDbDuplicate() const
|
||||
{
|
||||
return m_modelIataDescription.startsWith("duplicate", Qt::CaseInsensitive) ||
|
||||
m_modelSwiftDescription.startsWith("duplicate", Qt::CaseInsensitive);
|
||||
m_modelSwiftDescription.startsWith("do not", Qt::CaseInsensitive);
|
||||
}
|
||||
|
||||
void CAircraftIcaoCode::setCodeFlags(bool military, bool legacy, bool realWorld)
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace BlackMisc
|
||||
const CDbInfo info(CDbInfo::fromDatabaseJson(value.toObject()));
|
||||
infoObjects.push_back(info);
|
||||
}
|
||||
infoObjects.sortByKey(); // make sure the data are in proper order
|
||||
return infoObjects;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user