diff -r 2c9c2d67e4d8 -r adcffadf4962 Project/LexerAssociationDialog.py --- a/Project/LexerAssociationDialog.py Thu Mar 16 19:30:15 2017 +0100 +++ b/Project/LexerAssociationDialog.py Thu Mar 16 19:32:33 2017 +0100 @@ -86,7 +86,8 @@ ext, Qt.MatchFlags(Qt.MatchExactly), 0) if itmList: index = self.editorLexerList.indexOfTopLevelItem(itmList[0]) - itm = self.editorLexerList.takeTopLevelItem(index) # __IGNORE_WARNING__ + itm = self.editorLexerList.takeTopLevelItem(index) + # __IGNORE_WARNING__ del itm QTreeWidgetItem(self.editorLexerList, [ext, lexer]) self.editorFileExtEdit.clear() @@ -105,7 +106,8 @@ itmList = self.editorLexerList.selectedItems() if itmList: index = self.editorLexerList.indexOfTopLevelItem(itmList[0]) - itm = self.editorLexerList.takeTopLevelItem(index) # __IGNORE_WARNING__ + itm = self.editorLexerList.takeTopLevelItem(index) + # __IGNORE_WARNING__ del itm self.editorLexerList.clearSelection()