Merge pull request #963 from bill-auger/patch-3

move thisModule->isLoaded assert to after its warning message
This commit is contained in:
Adriaan de Groot 2018-05-22 12:06:58 +02:00 committed by GitHub
commit a9306eb5be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,10 +290,10 @@ ModuleManager::loadModules()
// If it's a ViewModule, it also appends the ViewStep to the ViewManager.
thisModule->loadSelf();
m_loadedModulesByInstanceKey.insert( instanceKey, thisModule );
Q_ASSERT( thisModule->isLoaded() );
if ( !thisModule->isLoaded() )
{
cWarning() << "Module" << moduleName << "loading FAILED";
Q_ASSERT( thisModule->isLoaded() );
continue;
}
}