[gimp] Bug 676871: GIMP reports false positive plugin crash after...



commit 2f10aee65df240d5da8e88bf54be6b1f5db878e4
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Tue May 29 13:10:05 2012 +0200

    Bug 676871: GIMP reports false positive plugin crash after...
    
    entering "quit()" in Python Console.

 plug-ins/pygimp/plug-ins/pyconsole.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/pygimp/plug-ins/pyconsole.py b/plug-ins/pygimp/plug-ins/pyconsole.py
index 6aebdda..a85bae3 100644
--- a/plug-ins/pygimp/plug-ins/pyconsole.py
+++ b/plug-ins/pygimp/plug-ins/pyconsole.py
@@ -525,7 +525,10 @@ class _Console(_ReadLine, code.InteractiveInterpreter):
         try:
             eval(code, self.locals)
         except SystemExit:
-            raise
+            if self.quit_func:
+                self.quit_func()
+            else:
+                raise
         except:
             self.showtraceback()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]