From: Sergio Villar Senin Date: Wed, 27 Feb 2008 12:43:56 +0000 (+0000) Subject: * Fixes NB#81413, Esc key closes the "Save changes" dialog and the editor window... X-Git-Tag: git_migration_finished~1626 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=633375fc06361329e8d3b8979558febb62d1cc21 * Fixes NB#81413, Esc key closes the "Save changes" dialog and the editor window instead of saving the message pmo-trunk-r4233 --- diff --git a/src/widgets/modest-window-mgr.c b/src/widgets/modest-window-mgr.c index 3b62214..4d32a10 100644 --- a/src/widgets/modest-window-mgr.c +++ b/src/widgets/modest-window-mgr.c @@ -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; }