[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:
parent
398b6be4ba
commit
a64de3dbfe
@ -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" );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user