Background updater can be const, only needed "readonly" for UI

This commit is contained in:
Klaus Basan
2017-07-03 19:57:10 +02:00
committed by Mathew Sutcliffe
parent 6a17465633
commit a1e16ea162
5 changed files with 6 additions and 5 deletions

View File

@@ -169,6 +169,7 @@ namespace BlackCore
const QSet<CSimulatorInfo> simSet = sims.asSingleSimulatorSet();
for (const CSimulatorInfo &singleInfo : simSet)
{
if (this->isShuttingDown()) { return; }
CAircraftModelList simModels = cache.getSynchronizedCachedModels(singleInfo);
if (simModels.isEmpty()) { continue; }
const CAircraftModelList dbModelsForSim = dbModels.matchesSimulator(singleInfo);