mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
The PartitionModel should be owned by the PCM.
This commit is contained in:
parent
4859431fe9
commit
275b68cf5c
1 changed files with 1 additions and 2 deletions
|
@ -574,8 +574,7 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
|
|||
previewLabels->setCustomNewRootLabel( Calamares::Branding::instance()->
|
||||
string( Calamares::Branding::BootloaderEntryName ) );
|
||||
|
||||
PartitionModel* model = new PartitionModel( preview );
|
||||
model->init( currentDevice, m_core->osproberEntries() );
|
||||
PartitionModel* model = m_core->partitionModelForDevice( selectedDevice() );
|
||||
|
||||
// The QObject parents tree is meaningful for memory management here,
|
||||
// see qDeleteAll above.
|
||||
|
|
Loading…
Add table
Reference in a new issue