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.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 160e45127c..3fb82db821 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1063,9 +1063,18 @@ autosave_load_draft (const char *filename)
unlink (filename);
composer = e_msg_composer_new_with_message (msg);
+ if (composer) {
+ autosave_save_draft (composer);
+
+ gtk_signal_connect (GTK_OBJECT (composer), "send",
+ GTK_SIGNAL_FUNC (composer_send_cb), NULL);
+ gtk_signal_connect (GTK_OBJECT (composer), "postpone",
+ GTK_SIGNAL_FUNC (composer_postpone_cb), NULL);
+
+ gtk_widget_show (GTK_WIDGET (composer));
+ }
camel_object_unref ((CamelObject *)stream);
- gtk_widget_show (GTK_WIDGET (composer));
return composer;
}
@@ -1114,8 +1123,9 @@ autosave_query_load_orphans (AutosaveManager *am, EMsgComposer *composer)
if (ok) {
char *filename = g_strdup_printf ("%s/%s", g_get_home_dir (), d->d_name);
+ EMsgComposer *composer;
- autosave_load_draft (filename);
+ composer = autosave_load_draft (filename);
g_free (filename);
}