Showing with 2 additions and 6 deletions.
  1. +2 −6 python/console/console_editor.py
8 changes: 2 additions & 6 deletions python/console/console_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,8 @@ def runScriptCode(self):
if self.syntaxCheck(fromContextMenu=False):
if autoSave:
tmpFile = self.createTempFile()
self._runSubProcess(tmpFile, True)
else:
self._runSubProcess(filename)
filename = tmpFile
self.parent.pc.shell.runCommand("execfile(r'{0}')".format(filename))

def runSelectedCode(self):
cmd = self.selectedText()
Expand Down Expand Up @@ -639,9 +638,6 @@ def syntaxCheck(self, filename=None, fromContextMenu=True):
else:
self.markerDeleteAll()
self.clearAnnotations()
if fromContextMenu:
msgText = QCoreApplication.translate('PythonConsole', 'Syntax ok')
self.parent.pc.callWidgetMessageBarEditor(msgText, 0, True)
return True

def keyPressEvent(self, e):
Expand Down