mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #755, restore distributor order when consolidating with DB data
(formerly order was overridden)
This commit is contained in:
committed by
Roland Winklmeier
parent
1e8090d366
commit
cbc095d230
@@ -327,7 +327,15 @@ namespace BlackMisc
|
||||
this->getLivery().isMilitary();
|
||||
}
|
||||
|
||||
bool CAircraftModel::updateDistributorOrder(const CDistributorList &distributors)
|
||||
bool CAircraftModel::setDistributorOrder(int order)
|
||||
{
|
||||
if (order < 0) { return false; }
|
||||
if (!this->m_distributor.isLoadedFromDb()) { return false; }
|
||||
this->m_distributor.setOrder(order);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CAircraftModel::setDistributorOrder(const CDistributorList &distributors)
|
||||
{
|
||||
if (distributors.isEmpty()) { return false; }
|
||||
bool found = false;
|
||||
|
||||
Reference in New Issue
Block a user