ConfigTreeNode.py
changeset 1033 1eec9b855e47
parent 967 8a339cd61cb4
child 1061 02f371f3e063
--- a/ConfigTreeNode.py	Mon Apr 15 00:32:16 2013 +0200
+++ b/ConfigTreeNode.py	Mon Apr 15 00:35:04 2013 +0200
@@ -465,6 +465,8 @@
         shutil.rmtree(CTNInstance.CTNPath())
         # Remove child of Children
         self.Children[CTNInstance.CTNType].remove(CTNInstance)
+        if len(self.Children[CTNInstance.CTNType]) == 0:
+            self.Children.pop(CTNInstance.CTNType)
         # Forget it... (View have to refresh)
 
     def CTNRemove(self):