Ref T701, check for model string in reader

This commit is contained in:
Klaus Basan
2019-07-07 16:38:27 +02:00
committed by Mat Sutcliffe
parent ea7b3316c9
commit e376c18b28
4 changed files with 20 additions and 0 deletions

View File

@@ -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(); }