move thisModule->isLoaded assert to after it's warning message

This commit is contained in:
bill auger 2018-05-22 03:29:01 -04:00 committed by bill-auger
parent fb94c227f6
commit b6673f6324

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;
}
}