mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Ref T701, check for model string in reader
This commit is contained in:
committed by
Mat Sutcliffe
parent
ea7b3316c9
commit
e376c18b28
@@ -106,6 +106,12 @@ namespace BlackCore
|
||||
return models.findFirstByModelStringOrDefault(modelString);
|
||||
}
|
||||
|
||||
bool CModelDataReader::containsModelString(const QString &modelString) const
|
||||
{
|
||||
if (modelString.isEmpty()) { return false; }
|
||||
return this->getModels().containsModelString(modelString);
|
||||
}
|
||||
|
||||
CAircraftModel CModelDataReader::getModelForDbKey(int dbKey) const
|
||||
{
|
||||
if (dbKey < 0) { return CAircraftModel(); }
|
||||
|
||||
Reference in New Issue
Block a user