mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Ref T441, cleanup
This commit is contained in:
@@ -302,7 +302,6 @@ namespace BlackGui
|
||||
m_reduceModelsDialog.reset(new CDbReduceModelDuplicates(this));
|
||||
}
|
||||
|
||||
// CAircraftModelList models = this->getModelSet(); // saved set
|
||||
CAircraftModelList models = ui->tvp_OwnModelSet->containerOrFilteredContainer();
|
||||
const CSimulatorInfo simulator = this->getModelSetSimulator();
|
||||
m_reduceModelsDialog->setModels(models, simulator);
|
||||
@@ -311,8 +310,6 @@ namespace BlackGui
|
||||
const CAircraftModelList removeModels = m_reduceModelsDialog->getRemoveCandidates();
|
||||
const CSimulatorInfo removeSimulator = m_reduceModelsDialog->getSimulator();
|
||||
if (removeModels.isEmpty()) { return; }
|
||||
// const QSet<int> keys = removeModels.toDbKeySet();
|
||||
// models.removeObjectsWithKeys(keys);
|
||||
const QStringList modelStrings = removeModels.getModelStringList(false);
|
||||
models.removeModelsWithString(modelStrings, Qt::CaseInsensitive); // by strings also removes if id is missing
|
||||
this->setModelSet(models, removeSimulator);
|
||||
|
||||
Reference in New Issue
Block a user