[partition] Rename function, to track down consumers
This commit is contained in:
parent
acb731d823
commit
f06766085a
@ -188,7 +188,7 @@ CreatePartitionDialog::initGptPartitionTypeUi()
|
||||
}
|
||||
|
||||
Partition*
|
||||
CreatePartitionDialog::createPartition()
|
||||
CreatePartitionDialog::getNewlyCreatedPartition()
|
||||
{
|
||||
if ( m_role.roles() == PartitionRole::None )
|
||||
{
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
* Must be called when user wants to edit a to-be-created partition.
|
||||
*/
|
||||
void initFromPartitionToCreate( Partition* partition );
|
||||
Partition* createPartition();
|
||||
Partition* getNewlyCreatedPartition();
|
||||
|
||||
PartitionTable::Flags newFlags() const;
|
||||
|
||||
|
@ -395,7 +395,7 @@ PartitionPage::onCreateClicked()
|
||||
dlg.initFromFreeSpace( partition );
|
||||
if ( dlg.exec() == QDialog::Accepted )
|
||||
{
|
||||
Partition* newPart = dlg.createPartition();
|
||||
Partition* newPart = dlg.getNewlyCreatedPartition();
|
||||
m_core->createPartition( model->device(), newPart, dlg.newFlags() );
|
||||
}
|
||||
}
|
||||
@ -496,7 +496,7 @@ PartitionPage::updatePartitionToCreate( Device* device, Partition* partition )
|
||||
dlg->initFromPartitionToCreate( partition );
|
||||
if ( dlg->exec() == QDialog::Accepted )
|
||||
{
|
||||
Partition* newPartition = dlg->createPartition();
|
||||
Partition* newPartition = dlg->getNewlyCreatedPartition();
|
||||
m_core->deletePartition( device, partition );
|
||||
m_core->createPartition( device, newPartition, dlg->newFlags() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user