mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
Do set flags after showing dialog.
This commit is contained in:
parent
5a134eb708
commit
3fa7318a37
1 changed files with 6 additions and 1 deletions
|
@ -167,7 +167,12 @@ PartitionPage::onCreateClicked()
|
|||
QPointer<CreatePartitionDialog> dlg = new CreatePartitionDialog( model->device(), partition->parent(), this );
|
||||
dlg->initFromFreeSpace( partition );
|
||||
if ( dlg->exec() == QDialog::Accepted )
|
||||
m_core->createPartition( model->device(), dlg->createPartition() );
|
||||
{
|
||||
Partition* newPart = dlg->createPartition();
|
||||
m_core->createPartition( model->device(), newPart );
|
||||
if ( dlg->newFlags() != PartitionTable::FlagNone )
|
||||
m_core->setPartitionFlags( model->device(), newPart, dlg->newFlags() );
|
||||
}
|
||||
delete dlg;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue