mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Update createPartition call.
This commit is contained in:
parent
e9d2312002
commit
182ff03e04
1 changed files with 2 additions and 4 deletions
|
@ -169,9 +169,7 @@ PartitionPage::onCreateClicked()
|
||||||
if ( dlg->exec() == QDialog::Accepted )
|
if ( dlg->exec() == QDialog::Accepted )
|
||||||
{
|
{
|
||||||
Partition* newPart = dlg->createPartition();
|
Partition* newPart = dlg->createPartition();
|
||||||
m_core->createPartition( model->device(), newPart );
|
m_core->createPartition( model->device(), newPart, dlg->newFlags() );
|
||||||
if ( dlg->newFlags() != PartitionTable::FlagNone )
|
|
||||||
m_core->setPartitionFlags( model->device(), newPart, dlg->newFlags() );
|
|
||||||
}
|
}
|
||||||
delete dlg;
|
delete dlg;
|
||||||
}
|
}
|
||||||
|
@ -255,7 +253,7 @@ PartitionPage::updatePartitionToCreate( Device* device, Partition* partition )
|
||||||
{
|
{
|
||||||
Partition* newPartition = dlg->createPartition();
|
Partition* newPartition = dlg->createPartition();
|
||||||
m_core->deletePartition( device, partition );
|
m_core->deletePartition( device, partition );
|
||||||
m_core->createPartition( device, newPartition );
|
m_core->createPartition( device, newPartition, dlg->newFlags() );
|
||||||
}
|
}
|
||||||
delete dlg;
|
delete dlg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue