850 """ |
850 """ |
851 Private method to close the other editors. |
851 Private method to close the other editors. |
852 """ |
852 """ |
853 index = self.contextMenuIndex |
853 index = self.contextMenuIndex |
854 for i in itertools.chain( |
854 for i in itertools.chain( |
855 range(self.viewlist.count() - 1, index, -1), |
855 range(self.viewlist.count() - 1, index, -1), range(index - 1, -1, -1) |
856 range(index - 1, -1, -1) |
|
857 ): |
856 ): |
858 editor = self.editors[i] |
857 editor = self.editors[i] |
859 self.closeEditorWindow(editor) |
858 self.closeEditorWindow(editor) |
860 |
859 |
861 def __contextMenuCloseAbove(self): |
860 def __contextMenuCloseAbove(self): |