[partition] Rename function, to track down consumers

This commit is contained in:
Adriaan de Groot 2021-06-21 23:20:32 +02:00
parent acb731d823
commit f06766085a
3 changed files with 4 additions and 4 deletions

View File

@ -188,7 +188,7 @@ CreatePartitionDialog::initGptPartitionTypeUi()
}
Partition*
CreatePartitionDialog::createPartition()
CreatePartitionDialog::getNewlyCreatedPartition()
{
if ( m_role.roles() == PartitionRole::None )
{

View File

@ -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;

View File

@ -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() );
}