Close the mail window when marking the last message as read.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40609 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2011-02-22 06:45:23 +00:00
parent aea362af0c
commit 07ede8884c

View File

@ -1516,12 +1516,13 @@ TMailWindow::MessageReceived(BMessage *msg)
window->Activate();
//fSent = true;
BMessage msg(B_CLOSE_REQUESTED);
PostMessage(&msg);
PostMessage(B_CLOSE_REQUESTED);
}
SetTrackerSelectionToCurrent();
} else {
if (wasReadMsg)
PostMessage(B_CLOSE_REQUESTED);
beep();
}
}