Reset the timeout for mailchecking after each mailcheck. The user might have

triggered it manually.

svn path=/trunk/kdepim/; revision=221700
wilder-work
Till Adam 23 years ago
parent 0df39cd2ae
commit c31c699ba2
  1. 8
      kmaccount.cpp

@ -383,7 +383,9 @@ void KMAccount::precommandExited(bool success)
//-----------------------------------------------------------------------------
void KMAccount::mailCheck()
{
kernel->acctMgr()->singleCheckMail(this, false);
if (mTimer)
mTimer->stop();
kernel->acctMgr()->singleCheckMail(this, false);
}
//-----------------------------------------------------------------------------
@ -502,6 +504,10 @@ void KMAccount::pseudoAssign( const KMAccount * a ) {
void KMAccount::checkDone( bool newmail, int newmailCount )
{
mCheckingMail = false;
// Reset the timeout for automatic mailchecking. The user might have
// triggered the check manually.
if (mTimer)
mTimer->start(mInterval*60000);
emit newMailsProcessed(newmailCount);
emit finishedCheck(newmail);
}

Loading…
Cancel
Save