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