diff options
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; |