mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
[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
1 changed files with 3 additions and 1 deletions
|
@ -218,7 +218,9 @@ ModuleManager::loadModules()
|
|||
|
||||
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" );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue