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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 31 Jan 2014 10:53:02 +0100
changeset 3235
2b8f173b35bb
parent 3233
33b91e6c5ae4
child 3236
92e15257b24e

Intercepted a keyboard interrupt in Shell.py because in some rare occasions there seem to be some spurious Ctrl-C send to the IDE.
(grafted from 89cd38c296b6b64e179b48a3f0ef733acaa3219d)

QScintilla/Shell.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Shell.py	Thu Jan 30 19:41:09 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