869 if itm.childCount(): |
869 if itm.childCount(): |
870 index = self.createIndex(itm.row(), 0, itm) |
870 index = self.createIndex(itm.row(), 0, itm) |
871 self.beginRemoveRows(index, 0, itm.childCount() - 1) |
871 self.beginRemoveRows(index, 0, itm.childCount() - 1) |
872 itm.removeChildren() |
872 itm.removeChildren() |
873 self.endRemoveRows() |
873 self.endRemoveRows() |
|
874 |
|
875 # reset the module parser cache |
874 ModuleParser.resetParsedModule(os.path.join(self.project.ppath, name)) |
876 ModuleParser.resetParsedModule(os.path.join(self.project.ppath, name)) |
875 |
877 |
876 self.populateItem(itm, True) |
878 self.populateItem(itm, True) |
877 |
879 |
878 def projectPropertiesChanged(self): |
880 def projectPropertiesChanged(self): |