Intercepted a keyboard interrupt in Shell.py because in some rare occasions there seem to be some spurious Ctrl-C send to the IDE. 5_4_x

Fri, 31 Jan 2014 10:53:02 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 31 Jan 2014 10:53:02 +0100
branch
5_4_x
changeset 3234
89cd38c296b6
parent 3225
b368dbec1e0b
child 3237
062e7224e5be

Intercepted a keyboard interrupt in Shell.py because in some rare occasions there seem to be some spurious Ctrl-C send to the IDE.

QScintilla/Shell.py file | annotate | diff | comparison | revisions
diff -r b368dbec1e0b -r 89cd38c296b6 QScintilla/Shell.py
--- a/QScintilla/Shell.py	Wed Jan 22 18:35:38 2014 +0100
+++ b/QScintilla/Shell.py	Fri Jan 31 10:53:02 2014 +0100
@@ -1293,7 +1293,10 @@
             
             self.dbs.remoteStatement(cmd)
             while self.inCommandExecution:
-                QApplication.processEvents()
+                try:
+                    QApplication.processEvents()
+                except KeyboardInterrupt:
+                    pass
         else:
             if not self.echoInput:
                 cmd = self.buff

eric ide

mercurial