mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
refs #720, adjusted exposed functions to new naming
* some minor formatting * use the new condolidation functions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d9a35563e3
commit
1167735897
@@ -171,14 +171,14 @@ namespace BlackGui
|
||||
QStringList CAircraftModelListModel::getModelStrings(bool sort) const
|
||||
{
|
||||
if (this->isEmpty()) { return QStringList(); }
|
||||
return this->container().getModelStrings(sort);
|
||||
return this->container().getModelStringList(sort);
|
||||
}
|
||||
|
||||
void CAircraftModelListModel::replaceOrAddByModelString(const CAircraftModelList &models)
|
||||
{
|
||||
if (models.isEmpty()) { return; }
|
||||
CAircraftModelList currentModels(container());
|
||||
currentModels.removeModelsWithString(models.getModelStrings(true), Qt::CaseInsensitive);
|
||||
currentModels.removeModelsWithString(models.getModelStringList(true), Qt::CaseInsensitive);
|
||||
currentModels.push_back(models);
|
||||
this->updateContainerMaybeAsync(currentModels);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user