aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-26 18:02:36 +0800
committerMilan Crha <mcrha@redhat.com>2012-06-26 18:02:36 +0800
commit137eec97eb4f3d25f662e651c168d67e7e9e85e4 (patch)
tree8210c9120233e60be406c6d746ad7bff2e89f3ca
parentd85eac79693e7b7a6d35248e4aabd5aaa911cb9c (diff)
downloadgsoc2013-evolution-137eec97eb4f3d25f662e651c168d67e7e9e85e4.tar.gz
gsoc2013-evolution-137eec97eb4f3d25f662e651c168d67e7e9e85e4.tar.zst
gsoc2013-evolution-137eec97eb4f3d25f662e651c168d67e7e9e85e4.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 c5a923d518..82f2ef5b14 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -4841,6 +4841,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;