diff options
author | Milan Crha <mcrha@redhat.com> | 2012-06-26 18:02:36 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-06-26 18:02:36 +0800 |
commit | 137eec97eb4f3d25f662e651c168d67e7e9e85e4 (patch) | |
tree | 8210c9120233e60be406c6d746ad7bff2e89f3ca /composer/e-msg-composer.c | |
parent | d85eac79693e7b7a6d35248e4aabd5aaa911cb9c (diff) | |
download | gsoc2013-evolution-137eec97eb4f3d25f662e651c168d67e7e9e85e4.tar gsoc2013-evolution-137eec97eb4f3d25f662e651c168d67e7e9e85e4.tar.gz gsoc2013-evolution-137eec97eb4f3d25f662e651c168d67e7e9e85e4.tar.bz2 gsoc2013-evolution-137eec97eb4f3d25f662e651c168d67e7e9e85e4.tar.lz gsoc2013-evolution-137eec97eb4f3d25f662e651c168d67e7e9e85e4.tar.xz gsoc2013-evolution-137eec97eb4f3d25f662e651c168d67e7e9e85e4.tar.zst gsoc2013-evolution-137eec97eb4f3d25f662e651c168d67e7e9e85e4.zip |
Bug #617557 - Can close composer while message is sending
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 5 |
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; |