mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Ref T118, allow to just provide an id (from backend) and set the entity on swift side
* added getDistributorForDbKey * added fillInMissingAircraftAndLiveryEntities * fromDbJson function adjusted
This commit is contained in:
@@ -85,6 +85,13 @@ namespace BlackCore
|
||||
return m_distributorCache.get();
|
||||
}
|
||||
|
||||
CDistributor CModelDataReader::getDistributorForDbKey(const QString &dbKey) const
|
||||
{
|
||||
if (dbKey.isEmpty()) { return CDistributor(); }
|
||||
const CDistributorList distributors(getDistributors());
|
||||
return distributors.findByKeyOrAlias(dbKey);
|
||||
}
|
||||
|
||||
CAircraftModelList CModelDataReader::getModels() const
|
||||
{
|
||||
return m_modelCache.get();
|
||||
|
||||
Reference in New Issue
Block a user