From a61340de0fdc4ce823d2eb78660803511da8c255 Mon Sep 17 00:00:00 2001 From: Ismail Onur Filiz Date: Sat, 11 Mar 2006 19:52:26 +0000 Subject: [PATCH] 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 --- kmfilter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }