diff options
author | Milan Crha <mcrha@redhat.com> | 2011-03-01 22:56:41 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:40 +0800 |
commit | 186fe2bfb71c5b27640c67896c40579585358213 (patch) | |
tree | 21e1c81c234a489dd9b4a71394e3fbdf359bfc6e /mail | |
parent | 0f01c083520ddcdce54ed640621dbe8c5dcad1e4 (diff) | |
download | gsoc2013-evolution-186fe2bfb71c5b27640c67896c40579585358213.tar.gz gsoc2013-evolution-186fe2bfb71c5b27640c67896c40579585358213.tar.zst gsoc2013-evolution-186fe2bfb71c5b27640c67896c40579585358213.zip |
Let Esc behave like Cancel in Reply questions and do not leak message
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-reader.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index 6a90fe6b9e..b70bebb7b9 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -1284,8 +1284,10 @@ action_mail_reply_all_check (CamelFolder *folder, if (response == GTK_RESPONSE_NO) type = E_MAIL_REPLY_TO_SENDER; - else if (response == GTK_RESPONSE_CANCEL) + else if (response == GTK_RESPONSE_CANCEL || response == GTK_RESPONSE_DELETE_EVENT) { + g_object_unref (message); return; + } } e_mail_reader_reply_to_message (reader, message, type); @@ -1437,8 +1439,10 @@ action_mail_reply_sender_check (CamelFolder *folder, type = E_MAIL_REPLY_TO_ALL; else if (response == GTK_RESPONSE_OK) type = E_MAIL_REPLY_TO_LIST; - else if (response == GTK_RESPONSE_CANCEL) + else if (response == GTK_RESPONSE_CANCEL || response == GTK_RESPONSE_DELETE_EVENT) { + g_object_unref (message); goto exit; + } } else if (ask_list_reply_to) { GtkWidget *dialog; @@ -1487,8 +1491,10 @@ action_mail_reply_sender_check (CamelFolder *folder, type = E_MAIL_REPLY_TO_FROM; else if (response == GTK_RESPONSE_OK) type = E_MAIL_REPLY_TO_LIST; - else if (response == GTK_RESPONSE_CANCEL) + else if (response == GTK_RESPONSE_CANCEL || response == GTK_RESPONSE_DELETE_EVENT) { + g_object_unref (message); goto exit; + } } e_mail_reader_reply_to_message (reader, message, type); |