Fixes the following bug:

When an account is removed, the filters related to it get stuck in an infinite loop when KMail is restarted, preventing KMail from starting.

BUG: 123342


svn path=/branches/KDE/3.5/kdepim/; revision=517670
wilder-work
Ismail Onur Filiz 20 years ago
parent a3a7d5ec77
commit a61340de0f
  1. 4
      kmfilter.cpp

@ -361,10 +361,10 @@ void KMFilter::purify()
--it;
// Remove invalid accounts from mAccounts - just to be tidy
QValueListConstIterator<int> it2 = mAccounts.begin();
QValueListIterator<int> it2 = mAccounts.begin();
while ( it2 != mAccounts.end() ) {
if ( !kmkernel->acctMgr()->find( *it2 ) )
mAccounts.remove( *it2 );
it2 = mAccounts.remove( it2 );
else
++it2;
}

Loading…
Cancel
Save