Show a summary when a single folder is checked and the new message count did not change

svn path=/trunk/kdepim/; revision=391495
wilder-work
Carsten Burghardt 21 years ago
parent 302f7809a2
commit 90882b30bb
  1. 7
      kmacctimap.cpp

@ -359,9 +359,10 @@ void KMAcctImap::postProcessNewMail( KMFolder * folder )
{
// all checks are done
mCountLastUnread = 0; // => mCountUnread - mCountLastUnread == new count
// when we check only one folder (=selected) then do not display a summary
// as the normal status message is better
ImapAccountBase::postProcessNewMail( !mCheckingSingleFolder );
// when we check only one folder (=selected) and we have new mails
// then do not display a summary as the normal status message is better
bool showStatus = ( mCheckingSingleFolder && mCountUnread > 0 ) ? false : true;
ImapAccountBase::postProcessNewMail( showStatus );
mUnreadBeforeCheck.clear();
mCheckingSingleFolder = false;
}

Loading…
Cancel
Save