[gimp] core: bail out of gimp_exit if exit was cancelled by user



commit ca9365f2b58a26244f885b4f84a02770cb65e65f
Author: Kristian Rietveld <kris loopnest org>
Date:   Sat Apr 16 14:20:43 2016 +0100

    core: bail out of gimp_exit if exit was cancelled by user

 app/core/gimp.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimp.c b/app/core/gimp.c
index 8f089b9..48cfce4 100644
--- a/app/core/gimp.c
+++ b/app/core/gimp.c
@@ -1212,6 +1212,9 @@ gimp_exit (Gimp     *gimp,
                  force ? TRUE : FALSE,
                  &handled);
 
+  if (handled)
+    return;
+
   /* Get rid of images without display. We do this *after* handling the
    * usual exit callbacks, because the things that are torn down there
    * might have references to these images (for instance GimpActions


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