hrev43573 adds 1 changeset to branch 'master' old head: 87dfde44f7601187b41036c6c98ae484af883e64 new head: 114ab70975295dadb4d061cb4538dc2abc43acc5 ---------------------------------------------------------------------------- 114ab70: Change style of boolean expression to enhance readability. [ Philippe Saint-Pierre <stpere@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev43573 Commit: 114ab70975295dadb4d061cb4538dc2abc43acc5 URL: http://cgit.haiku-os.org/haiku/commit/?id=114ab70 Author: Philippe Saint-Pierre <stpere@xxxxxxxxx> Date: Thu Dec 29 17:38:42 2011 UTC ---------------------------------------------------------------------------- 1 files changed, 4 insertions(+), 2 deletions(-) src/servers/mail/Notifier.cpp | 6 ++++-- ---------------------------------------------------------------------------- diff --git a/src/servers/mail/Notifier.cpp b/src/servers/mail/Notifier.cpp index 2a80c01..11633e5 100644 --- a/src/servers/mail/Notifier.cpp +++ b/src/servers/mail/Notifier.cpp @@ -131,8 +131,10 @@ DefaultNotifier::ReportProgress(int bytes, int messages, const char* message) if (fItemsDone == fTotalItems && fTotalItems != 0) timeout = 1; // We're done, make the window go away faster - if ((!fIsInbound && fShowMode & B_MAIL_SHOW_STATUS_WINDOW_WHEN_SENDING) - || (fIsInbound && fShowMode & B_MAIL_SHOW_STATUS_WINDOW_WHEN_ACTIVE)) + if ((!fIsInbound + && (fShowMode & B_MAIL_SHOW_STATUS_WINDOW_WHEN_SENDING) != 0) + || (fIsInbound + && (fShowMode & B_MAIL_SHOW_STATUS_WINDOW_WHEN_ACTIVE) != 0)) fNotification.Send(timeout); }