aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-03-01 16:43:00 +0800
committerMilan Crha <mcrha@redhat.com>2012-03-01 16:43:47 +0800
commit78cd0d0a73fd9941fe715438f9f498257d147090 (patch)
tree5f3389194c10c3d24b2ff4e10dd109da976023c8 /composer
parent16a287af9336bda57e66e1e8fbfa46a64ca4d57f (diff)
downloadgsoc2013-evolution-78cd0d0a73fd9941fe715438f9f498257d147090.tar
gsoc2013-evolution-78cd0d0a73fd9941fe715438f9f498257d147090.tar.gz
gsoc2013-evolution-78cd0d0a73fd9941fe715438f9f498257d147090.tar.bz2
gsoc2013-evolution-78cd0d0a73fd9941fe715438f9f498257d147090.tar.lz
gsoc2013-evolution-78cd0d0a73fd9941fe715438f9f498257d147090.tar.xz
gsoc2013-evolution-78cd0d0a73fd9941fe715438f9f498257d147090.tar.zst
gsoc2013-evolution-78cd0d0a73fd9941fe715438f9f498257d147090.zip
Bug #617557 - Can lost message after send failed
Diffstat (limited to 'composer')
-rw-r--r--composer/e-msg-composer.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 9f32d8cabe..c9f41d599a 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -3518,6 +3518,10 @@ msg_composer_send_cb (EMsgComposer *composer,
g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message));
+ /* The callback can set editor 'changed' if anything failed. */
+ editor = GTKHTML_EDITOR (composer);
+ gtkhtml_editor_set_changed (editor, FALSE);
+
g_signal_emit (
composer, signals[SEND], 0,
message, context->activity);
@@ -3525,10 +3529,6 @@ msg_composer_send_cb (EMsgComposer *composer,
g_object_unref (message);
async_context_free (context);
-
- /* XXX This should be elsewhere. */
- editor = GTKHTML_EDITOR (composer);
- gtkhtml_editor_set_changed (editor, FALSE);
}
/**
@@ -3610,6 +3610,10 @@ msg_composer_save_to_drafts_cb (EMsgComposer *composer,
g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message));
+ /* The callback can set editor 'changed' if anything failed. */
+ editor = GTKHTML_EDITOR (composer);
+ gtkhtml_editor_set_changed (editor, FALSE);
+
g_signal_emit (
composer, signals[SAVE_TO_DRAFTS],
0, message, context->activity);
@@ -3617,10 +3621,6 @@ msg_composer_save_to_drafts_cb (EMsgComposer *composer,
g_object_unref (message);
async_context_free (context);
-
- /* XXX This should be elsewhere. */
- editor = GTKHTML_EDITOR (composer);
- gtkhtml_editor_set_changed (editor, FALSE);
}
/**