aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-composer-actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-composer-actions.c')
-rw-r--r--composer/e-composer-actions.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/composer/e-composer-actions.c b/composer/e-composer-actions.c
index 07ec555452..e16a207005 100644
--- a/composer/e-composer-actions.c
+++ b/composer/e-composer-actions.c
@@ -127,9 +127,8 @@ action_close_cb (GtkAction *action,
editor = GTKHTML_EDITOR (composer);
widget = GTK_WIDGET (composer);
- if (!gtkhtml_editor_get_changed (editor) &&
- e_composer_autosave_get_saved (composer)) {
-
+ if (!gtkhtml_editor_get_changed (editor) ||
+ e_msg_composer_is_exiting (composer)) {
gtk_widget_destroy (widget);
return;
}