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

This commit is contained in:
Kristian Rietveld 2016-04-16 14:20:43 +01:00
parent 1e4cbd3232
commit ca9365f2b5
1 changed files with 3 additions and 0 deletions

View File

@ -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