|
|
@ -362,18 +362,18 @@ PartitionPage::onCreateClicked()
|
|
|
|
if ( !checkCanCreate( model->device() ) )
|
|
|
|
if ( !checkCanCreate( model->device() ) )
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
QPointer< CreatePartitionDialog > dlg = new CreatePartitionDialog( model->device(),
|
|
|
|
CreatePartitionDialog dlg(
|
|
|
|
|
|
|
|
model->device(),
|
|
|
|
partition->parent(),
|
|
|
|
partition->parent(),
|
|
|
|
nullptr,
|
|
|
|
nullptr,
|
|
|
|
getCurrentUsedMountpoints(),
|
|
|
|
getCurrentUsedMountpoints(),
|
|
|
|
this );
|
|
|
|
this );
|
|
|
|
dlg->initFromFreeSpace( partition );
|
|
|
|
dlg.initFromFreeSpace( partition );
|
|
|
|
if ( dlg->exec() == QDialog::Accepted )
|
|
|
|
if ( dlg.exec() == QDialog::Accepted )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Partition* newPart = dlg->createPartition();
|
|
|
|
Partition* newPart = dlg.createPartition();
|
|
|
|
m_core->createPartition( model->device(), newPart, dlg->newFlags() );
|
|
|
|
m_core->createPartition( model->device(), newPart, dlg.newFlags() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
delete dlg;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|