QScintilla/Editor.py

changeset 1762
307393ebe9c6
parent 1758
e18f96b1714b
child 1768
8a04ce23e083
--- a/QScintilla/Editor.py	Fri Apr 06 12:36:09 2012 +0200
+++ b/QScintilla/Editor.py	Fri Apr 06 13:59:54 2012 +0200
@@ -1946,7 +1946,7 @@
         @param temporary flag indicating a temporary breakpoint (boolean)
         """
         if self.fileName and \
-           (self.isPy2File() or self.isPy3File() or self.isRubyFile()):
+           (self.isPy3File() or self.isPy2File() or self.isRubyFile()):
             self.breakpointModel.addBreakPoint(self.fileName, line,
                 ('', temporary, True, 0))
             self.breakpointToggled.emit(self)
@@ -4170,12 +4170,12 @@
             self.menuActs["Copy"].setEnabled(self.hasSelectedText())
         if not self.isResourcesFile:
             if self.fileName and \
-               (self.isPy2File() or self.isPy3File()):
+               (self.isPy3File() or self.isPy2File()):
                 self.menuActs["Show"].setEnabled(True)
             else:
                 self.menuActs["Show"].setEnabled(False)
             if self.fileName and \
-               (self.isPy2File() or self.isPy3File() or self.isRubyFile()):
+               (self.isPy3File() or self.isPy2File() or self.isRubyFile()):
                 self.menuActs["Diagrams"].setEnabled(True)
             else:
                 self.menuActs["Diagrams"].setEnabled(False)
@@ -4288,7 +4288,7 @@
         Private slot handling the aboutToShow signal of the margins context menu.
         """
         if self.fileName and \
-           (self.isPy2File() or self.isPy3File() or self.isRubyFile()):
+           (self.isPy3File() or self.isPy2File() or self.isRubyFile()):
             self.marginMenuActs["Breakpoint"].setEnabled(True)
             self.marginMenuActs["TempBreakpoint"].setEnabled(True)
             if self.markersAtLine(self.line) & self.breakpointMask:

eric ide

mercurial