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
This commit is contained in:
parent
fa00c3c3ff
commit
b419343e89
@ -2173,9 +2173,8 @@ TMailWindow::Send(bool now)
|
|||||||
mail_encoding encodingForHeaders = quoted_printable;
|
mail_encoding encodingForHeaders = quoted_printable;
|
||||||
|
|
||||||
if (!now) {
|
if (!now) {
|
||||||
status_t status;
|
status_t status = SaveAsDraft();
|
||||||
|
if (status != B_OK) {
|
||||||
if ((status = SaveAsDraft()) != B_OK) {
|
|
||||||
beep();
|
beep();
|
||||||
(new BAlert("",
|
(new BAlert("",
|
||||||
MDR_DIALECT_CHOICE ("E-mail draft could not be saved!","ドラフトは保存できませんでした。"),
|
MDR_DIALECT_CHOICE ("E-mail draft could not be saved!","ドラフトは保存できませんでした。"),
|
||||||
@ -2552,7 +2551,6 @@ TMailWindow::SaveAsDraft()
|
|||||||
BNodeInfo info(&draft);
|
BNodeInfo info(&draft);
|
||||||
info.SetType(kDraftType);
|
info.SetType(kDraftType);
|
||||||
|
|
||||||
fSent = true;
|
|
||||||
fDraft = true;
|
fDraft = true;
|
||||||
fChanged = false;
|
fChanged = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user