mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04: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 );
|
QPointer<CreatePartitionDialog> dlg = new CreatePartitionDialog( model->device(), partition->parent(), this );
|
||||||
dlg->initFromFreeSpace( partition );
|
dlg->initFromFreeSpace( partition );
|
||||||
if ( dlg->exec() == QDialog::Accepted )
|
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;
|
delete dlg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue