[packagechooser] Set default ID as documented
This commit is contained in:
parent
b711c791bd
commit
c59ffc7765
@ -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…
Reference in New Issue
Block a user