[libcalamaresui] Assign the index to found

- Previous code assigns the result of the comparison to found,
   instead of the index, resulting in the wrong configuration
   map sent to each module.
This commit is contained in:
Adriaan de Groot 2018-06-18 10:29:30 -04:00
parent 398b6be4ba
commit a64de3dbfe

View File

@ -218,7 +218,9 @@ ModuleManager::loadModules()
if ( moduleName != instanceId ) //means this is a custom instance if ( moduleName != instanceId ) //means this is a custom instance
{ {
if ( int found = findCustomInstance( customInstances, moduleName, instanceId ) > -1 ) int found = findCustomInstance( customInstances, moduleName, instanceId );
if ( found > -1 )
{ {
configFileName = customInstances[ found ].value( "config" ); configFileName = customInstances[ found ].value( "config" );
} }