Index: src/dlg-jpegtran.c
===================================================================
RCS file: /cvs/gnome/gthumb/src/dlg-jpegtran.c,v
retrieving revision 1.44
diff -u -p -r1.44 dlg-jpegtran.c
--- src/dlg-jpegtran.c	8 Nov 2006 13:30:20 -0000	1.44
+++ src/dlg-jpegtran.c	9 Nov 2006 20:20:50 -0000
@@ -251,7 +251,10 @@ static gint jpeg_mcu_dialog (GtkWindow *
 
  	gtk_widget_destroy (d);
 
- 	return result;
+	if (result == GTK_RESPONSE_DELETE_EVENT)
+		return GTK_RESPONSE_CANCEL;
+	else
+ 		return result;
 }
 
 
