869 @param editor editor window |
869 @param editor editor window |
870 """ |
870 """ |
871 if editor is None: |
871 if editor is None: |
872 return |
872 return |
873 |
873 |
874 if editor.isPy3File() or editor.isPy2File() or editor.isRubyFile(): |
874 if editor.getPyVersion() or editor.isRubyFile(): |
875 if editor.curLineHasBreakpoint(): |
875 if editor.curLineHasBreakpoint(): |
876 self.dbgEditBpAct.setEnabled(True) |
876 self.dbgEditBpAct.setEnabled(True) |
877 else: |
877 else: |
878 self.dbgEditBpAct.setEnabled(False) |
878 self.dbgEditBpAct.setEnabled(False) |
879 if editor.hasBreakpoints(): |
879 if editor.hasBreakpoints(): |