116 if itm: |
116 if itm: |
117 parent = itm.parent() |
117 parent = itm.parent() |
118 parent.removeChild(itm) |
118 parent.removeChild(itm) |
119 del itm |
119 del itm |
120 if parent.childCount() == 0: |
120 if parent.childCount() == 0: |
121 top = self.takeTopLevelItem(self.indexOfTopLevelItem(parent)) # __IGNORE_WARNING__ |
121 top = self.takeTopLevelItem(self.indexOfTopLevelItem(parent)) |
|
122 # __IGNORE_WARNING__ |
122 del top |
123 del top |
123 |
124 |
124 def __projectDataChanged(self, project): |
125 def __projectDataChanged(self, project): |
125 """ |
126 """ |
126 Private slot to handle the change of a project of the multi project. |
127 Private slot to handle the change of a project of the multi project. |