From 0acbeed141fda7c829246d8604bb505de49378b6 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Thu, 15 Dec 2016 02:50:32 +0100 Subject: [PATCH] refs #834, reset the loading flag (was missing and the bug itself) --- src/blackmisc/simulation/aircraftmodelloader.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/blackmisc/simulation/aircraftmodelloader.cpp b/src/blackmisc/simulation/aircraftmodelloader.cpp index 57ecde5df..941c7a8d9 100644 --- a/src/blackmisc/simulation/aircraftmodelloader.cpp +++ b/src/blackmisc/simulation/aircraftmodelloader.cpp @@ -145,10 +145,13 @@ namespace BlackMisc if (mode.testFlag(CacheOnly)) { // only cache, but we did not find any data yet (still in progress?) - // here we rely on the cache load slot, no need to emit here - // an alternative was to sync cache here + // here we rely on the cache load slot, no need to emit here, will + // be done later in ps_cacheChanged. An alternative was to sync cache here + this->m_loadingInProgress = false; return; } + + // really load from disk this->startLoadingFromDisk(mode, modelConsolidation, directory); }