[haiku-commits] haiku: hrev53488 - src/kits/mail

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 14 Sep 2019 16:05:56 -0400 (EDT)

hrev53488 adds 1 changeset to branch 'master'
old head: 9b695ae61d6e38bafd11660c2d9c44e6d558b081
new head: 4015b5877f668e870c12f4214af98078eed3b4e3
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=4015b5877f66+%5E9b695ae61d6e

----------------------------------------------------------------------------

4015b5877f66: Mail: Fix 'Leave as 'New'
  
  When closing an unread email via "Close | Leave as 'New'", it's
  still set to MAIL:status "Read".
  IComparing the BString read from the MAIL:status attribute returns
  "0" for a match, which the if-statement turns to false...
  
  Change-Id: I4c3846fd39a6056e4bed8388e41dbf4929798799
  Reviewed-on: https://review.haiku-os.org/c/haiku/+/1865
  Reviewed-by: waddlesplash <waddlesplash@xxxxxxxxx>

                                        [ Humdinger <humdingerb@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53488
Commit:      4015b5877f668e870c12f4214af98078eed3b4e3
URL:         https://git.haiku-os.org/haiku/commit/?id=4015b5877f66
Author:      Humdinger <humdingerb@xxxxxxxxx>
Date:        Sat Sep 14 19:56:16 2019 UTC
Committer:   waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Sat Sep 14 20:05:52 2019 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/kits/mail/mail_util.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/kits/mail/mail_util.cpp b/src/kits/mail/mail_util.cpp
index 42283dee55..478084c58a 100644
--- a/src/kits/mail/mail_util.cpp
+++ b/src/kits/mail/mail_util.cpp
@@ -189,7 +189,7 @@ read_read_attr(BNode& node, read_flags& flag)
 
        BString statusString;
        if (node.ReadAttrString(B_MAIL_ATTR_STATUS, &statusString) == B_OK) {
-               if (statusString.ICompare("New"))
+               if (statusString.ICompare("New") == 0)
                        flag = B_UNREAD;
                else
                        flag = B_READ;


Other related posts:

  • » [haiku-commits] haiku: hrev53488 - src/kits/mail - waddlesplash