670 """ |
670 """ |
671 Private method to close the other editors. |
671 Private method to close the other editors. |
672 """ |
672 """ |
673 index = self.contextMenuIndex |
673 index = self.contextMenuIndex |
674 for i in list(range(self.viewlist.count() - 1, index, -1)) + \ |
674 for i in list(range(self.viewlist.count() - 1, index, -1)) + \ |
675 list(range(index - 1, -1, -1)): |
675 list(range(index - 1, -1, -1)): |
676 editor = self.editors[i] |
676 editor = self.editors[i] |
677 self.closeEditorWindow(editor) |
677 self.closeEditorWindow(editor) |
678 |
678 |
679 def __contextMenuCloseAll(self): |
679 def __contextMenuCloseAll(self): |
680 """ |
680 """ |