Remove PartitionInfo if we remove a Partition

main
Aurélien Gâteau 11 years ago
parent 3ed5704818
commit 467d89f56f

@ -94,6 +94,8 @@ PartitionCoreModule::createPartition( Device* device, PartitionInfo* partitionIn
void void
PartitionCoreModule::deletePartition( Device* device, Partition* partition ) PartitionCoreModule::deletePartition( Device* device, Partition* partition )
{ {
m_infoForPartitionHash.remove( partition );
if ( partition->state() == Partition::StateNew ) if ( partition->state() == Partition::StateNew )
{ {
// Find matching CreatePartitionJob // Find matching CreatePartitionJob

Loading…
Cancel
Save