aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 90ce610eb9..c5a923d518 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -3568,6 +3568,12 @@ msg_composer_save_to_drafts_cb (EMsgComposer *composer,
g_warn_if_fail (message == NULL);
async_context_free (context);
g_error_free (error);
+
+ if (e_msg_composer_is_exiting (composer)) {
+ gtk_window_present (GTK_WINDOW (composer));
+ composer->priv->application_exiting = FALSE;
+ }
+
return;
}
@@ -3579,6 +3585,12 @@ msg_composer_save_to_drafts_cb (EMsgComposer *composer,
error->message, NULL);
async_context_free (context);
g_error_free (error);
+
+ if (e_msg_composer_is_exiting (composer)) {
+ gtk_window_present (GTK_WINDOW (composer));
+ composer->priv->application_exiting = FALSE;
+ }
+
return;
}
@@ -3594,6 +3606,9 @@ msg_composer_save_to_drafts_cb (EMsgComposer *composer,
g_object_unref (message);
+ if (e_msg_composer_is_exiting (composer))
+ g_object_weak_ref (G_OBJECT (context->activity), (GWeakNotify) gtk_widget_destroy, composer);
+
async_context_free (context);
}