* Fixes NB#81413, Esc key closes the "Save changes" dialog and the editor window...
authorSergio Villar Senin <svillar@igalia.com>
Wed, 27 Feb 2008 12:43:56 +0000 (12:43 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 27 Feb 2008 12:43:56 +0000 (12:43 +0000)
pmo-trunk-r4233

src/widgets/modest-window-mgr.c

index 3b62214..4d32a10 100644 (file)
@@ -708,7 +708,7 @@ on_window_destroy (ModestWindow *window,
                                        modest_platform_run_confirmation_dialog (GTK_WINDOW (window),
                                                                                 _("mcen_nc_no_email_message_modified_save_changes"));
                                /* Save to drafts */
-                               if (response != GTK_RESPONSE_CANCEL)
+                               if (response == GTK_RESPONSE_OK)
                                        if (!modest_ui_actions_on_save_to_drafts (NULL, MODEST_MSG_EDIT_WINDOW (window)))
                                                return TRUE;
                        }