Don't mark read messages as seen when closing the mail window.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40603 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1732,8 +1732,16 @@ TMailWindow::QuitRequested()
|
|||||||
}
|
}
|
||||||
} else if (fRef != NULL && !sKeepStatusOnQuit) {
|
} else if (fRef != NULL && !sKeepStatusOnQuit) {
|
||||||
// ...Otherwise just set the message read
|
// ...Otherwise just set the message read
|
||||||
read_flags flag = (fAutoMarkRead == true) ? B_READ : B_SEEN;
|
if (fAutoMarkRead == true)
|
||||||
SetCurrentMessageRead(flag);
|
SetCurrentMessageRead(B_READ);
|
||||||
|
else {
|
||||||
|
BNode node(fRef);
|
||||||
|
read_flags currentFlag;
|
||||||
|
if (read_read_attr(node, currentFlag) != B_OK)
|
||||||
|
currentFlag = B_UNREAD;
|
||||||
|
if (currentFlag == B_UNREAD)
|
||||||
|
SetCurrentMessageRead(B_SEEN);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BPrivate::BPathMonitor::StopWatching(BMessenger(this, this));
|
BPrivate::BPathMonitor::StopWatching(BMessenger(this, this));
|
||||||
|
|||||||
Reference in New Issue
Block a user