aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-06-06 05:24:33 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-06-06 05:24:33 +0000
commitf1746b3308d931646ebd955b1ee479fc9ff8bb57 (patch)
treed020e9a6b0b062d8b1e3830bfec147c4a6d05e21 /src
parent793e7f66692b4c7b2b4ebf5bf8dbf69ce086ed13 (diff)
don't close compose window when saving to outbox failed.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2884 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/compose.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compose.c b/src/compose.c
index b24b1d0f..61e23e5e 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -3568,10 +3568,11 @@ static gint compose_send(Compose *compose)
if (!drop_done) {
outbox = account_get_special_folder
(compose->account, F_OUTBOX);
- if (procmsg_save_to_outbox(outbox, tmp) < 0)
+ if (procmsg_save_to_outbox(outbox, tmp) < 0) {
alertpanel_error
- (_("Can't save the message to outbox."));
- else
+ (_("Sending of message was completed, but the message could not be saved to outbox."));
+ ok = -2;
+ } else
folderview_update_item(outbox, TRUE);
}
}