--- a/Preferences/ConfigurationPages/EditorHighlightersPage.py Thu Mar 16 19:30:15 2017 +0100 +++ b/Preferences/ConfigurationPages/EditorHighlightersPage.py Thu Mar 16 19:32:33 2017 +0100 @@ -98,7 +98,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() @@ -117,7 +118,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()