From b419343e896b4a7597701c86f7b44f0a3092d061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 13 Nov 2008 20:07:32 +0000 Subject: [PATCH] Do not set fSent to true in SaveAsDraft() already, since it is correctly set in Send(), which uses SaveAsDraft(). This fixes #1020. Thanks to kaoutsis and ksmith for their investigation! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28641 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mail/MailWindow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/apps/mail/MailWindow.cpp b/src/apps/mail/MailWindow.cpp index 81153ae322..f52b0a5952 100644 --- a/src/apps/mail/MailWindow.cpp +++ b/src/apps/mail/MailWindow.cpp @@ -2173,9 +2173,8 @@ TMailWindow::Send(bool now) mail_encoding encodingForHeaders = quoted_printable; if (!now) { - status_t status; - - if ((status = SaveAsDraft()) != B_OK) { + status_t status = SaveAsDraft(); + if (status != B_OK) { beep(); (new BAlert("", MDR_DIALECT_CHOICE ("E-mail draft could not be saved!","ドラフトは保存できませんでした。"), @@ -2552,7 +2551,6 @@ TMailWindow::SaveAsDraft() BNodeInfo info(&draft); info.SetType(kDraftType); - fSent = true; fDraft = true; fChanged = false;