mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
[packagechooser] Set default ID as documented
This commit is contained in:
parent
b711c791bd
commit
c59ffc7765
1 changed files with 6 additions and 0 deletions
|
@ -161,6 +161,12 @@ PackageChooserViewStep::setConfigurationMap( const QVariantMap& configurationMap
|
||||||
}
|
}
|
||||||
|
|
||||||
m_id = CalamaresUtils::getString( configurationMap, "id" );
|
m_id = CalamaresUtils::getString( configurationMap, "id" );
|
||||||
|
if ( m_id.isEmpty() )
|
||||||
|
{
|
||||||
|
// Not set, so use the instance id
|
||||||
|
// TODO: use a stronger type than QString for structured IDs
|
||||||
|
m_id = moduleInstanceKey().split( '@' ).last();
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: replace this hard-coded model
|
// TODO: replace this hard-coded model
|
||||||
if ( !m_model )
|
if ( !m_model )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue