aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-26 18:03:01 +0800
committerMilan Crha <mcrha@redhat.com>2012-06-26 18:03:01 +0800
commite09846d55aa7102e891a3251c3a2e7c8fab337b1 (patch)
tree6fcfcc8eb07d8ba199490188179e41f1daa2fe28
parent46976eef271ada6ca1c5c53a8843952ef022a902 (diff)
downloadgsoc2013-evolution-e09846d55aa7102e891a3251c3a2e7c8fab337b1.tar.gz
gsoc2013-evolution-e09846d55aa7102e891a3251c3a2e7c8fab337b1.tar.zst
gsoc2013-evolution-e09846d55aa7102e891a3251c3a2e7c8fab337b1.zip
Bug #617557 - Can close composer while message is sending
-rw-r--r--composer/e-msg-composer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 0426ab3860..8dbbdc6670 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -4891,6 +4891,11 @@ e_msg_composer_can_close (EMsgComposer *composer,
editor = GTKHTML_EDITOR (composer);
widget = GTK_WIDGET (composer);
+ /* this means that there is an async operation running,
+ in which case the composer cannot be closed */
+ if (!gtk_action_group_get_sensitive (composer->priv->async_actions))
+ return FALSE;
+
if (!gtkhtml_editor_get_changed (editor))
return TRUE;