diff --git a/kmfilter.cpp b/kmfilter.cpp index 286c5e0c9..d44562345 100644 --- a/kmfilter.cpp +++ b/kmfilter.cpp @@ -361,10 +361,10 @@ void KMFilter::purify() --it; // Remove invalid accounts from mAccounts - just to be tidy - QValueListConstIterator it2 = mAccounts.begin(); + QValueListIterator it2 = mAccounts.begin(); while ( it2 != mAccounts.end() ) { if ( !kmkernel->acctMgr()->find( *it2 ) ) - mAccounts.remove( *it2 ); + it2 = mAccounts.remove( it2 ); else ++it2; }