mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[libcalamares] Don't complain if there isn't a preset
- If the module knows about a preset, then it should be registered even if there is not a value set for it specifically; this avoids complaints from isEditable() for fields that are known, but do not have a preset. (Reported by Anke)
This commit is contained in:
parent
a4c1f07521
commit
a3a1350dc7
1 changed files with 7 additions and 0 deletions
|
@ -123,6 +123,13 @@ Config::ApplyPresets::apply( const char* fieldName )
|
|||
}
|
||||
m_c.d->m_presets->append( PresetField { key, value, editable } );
|
||||
}
|
||||
else
|
||||
{
|
||||
// There is no setting, but since we apply() this field,
|
||||
// we do know about it; put in a preset so that looking
|
||||
// it up won't complani.
|
||||
m_c.d->m_presets->append( PresetField { key, QVariant(), true } );
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue