From 467d89f56f2c64a9fbd3687134120f538e058521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Fri, 4 Jul 2014 17:59:03 +0200 Subject: [PATCH] Remove PartitionInfo if we remove a Partition --- src/modules/partition/PartitionCoreModule.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/partition/PartitionCoreModule.cpp b/src/modules/partition/PartitionCoreModule.cpp index 62b56f69c..a67218f0c 100644 --- a/src/modules/partition/PartitionCoreModule.cpp +++ b/src/modules/partition/PartitionCoreModule.cpp @@ -94,6 +94,8 @@ PartitionCoreModule::createPartition( Device* device, PartitionInfo* partitionIn void PartitionCoreModule::deletePartition( Device* device, Partition* partition ) { + m_infoForPartitionHash.remove( partition ); + if ( partition->state() == Partition::StateNew ) { // Find matching CreatePartitionJob