mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #661, reset order when creating a new model set
(found during demo in meeting)
This commit is contained in:
@@ -56,17 +56,18 @@ namespace BlackCore
|
||||
// without any information we can not use them
|
||||
modelSet = modelSet.findWithKnownAircraftDesignator();
|
||||
}
|
||||
|
||||
modelSet = modelSet.matchesSimulator(simulator);
|
||||
modelSet.setModelMode(CAircraftModel::Include); // in sets we only include, exclude means not present in set
|
||||
|
||||
if (oprions.testFlag(Incremental))
|
||||
{
|
||||
if (currentSet.isEmpty()) { return modelSet; }
|
||||
CAircraftModelList copy(currentSet);
|
||||
copy.replaceOrAddModelsWithString(modelSet, Qt::CaseInsensitive); // incremental
|
||||
return copy.matchesSimulator(simulator);
|
||||
}
|
||||
else
|
||||
{
|
||||
return modelSet.matchesSimulator(simulator);
|
||||
}
|
||||
|
||||
modelSet.resetOrder();
|
||||
return modelSet;
|
||||
}
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user