Prevent segfault on exit when module not found.

This commit is contained in:
Teo Mrnjavac 2014-09-23 16:15:52 +02:00
parent 045d9cdf8c
commit 9ebc881223

View File

@ -84,7 +84,8 @@ ModuleManager::loadModules( Phase phase )
{
cDebug() << "Module" << moduleName << "not found in module search paths."
<< "\nCalamares will now quit.";
qApp->quit();
qApp->exit( 1 );
return;
}
if ( m_availableModules.value( moduleName )->isLoaded() )
{