The PartitionModel should be owned by the PCM.

main
Teo Mrnjavac 9 years ago
parent 4859431fe9
commit 275b68cf5c

@ -574,8 +574,7 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
previewLabels->setCustomNewRootLabel( Calamares::Branding::instance()-> previewLabels->setCustomNewRootLabel( Calamares::Branding::instance()->
string( Calamares::Branding::BootloaderEntryName ) ); string( Calamares::Branding::BootloaderEntryName ) );
PartitionModel* model = new PartitionModel( preview ); PartitionModel* model = m_core->partitionModelForDevice( selectedDevice() );
model->init( currentDevice, m_core->osproberEntries() );
// The QObject parents tree is meaningful for memory management here, // The QObject parents tree is meaningful for memory management here,
// see qDeleteAll above. // see qDeleteAll above.

Loading…
Cancel
Save