682 """ |
682 """ |
683 Private method to close the other tabs. |
683 Private method to close the other tabs. |
684 """ |
684 """ |
685 index = self.contextMenuIndex |
685 index = self.contextMenuIndex |
686 for i in itertools.chain( |
686 for i in itertools.chain( |
687 range(self.count() - 1, index, -1), |
687 range(self.count() - 1, index, -1), range(index - 1, -1, -1) |
688 range(index - 1, -1, -1) |
|
689 ): |
688 ): |
690 editor = self.widget(i).getEditor() |
689 editor = self.widget(i).getEditor() |
691 self.vm.closeEditorWindow(editor) |
690 self.vm.closeEditorWindow(editor) |
692 |
691 |
693 def __contextMenuCloseLeft(self): |
692 def __contextMenuCloseLeft(self): |