summaryrefslogtreecommitdiff
blob: 5193c364f6682b81675b2b0a8fc74211d4e819f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From fb1874f8e2805f0afb3b9e848e8fd4d9ee11a97f Mon Sep 17 00:00:00 2001
From: Montel Laurent <montel@kde.org>
Date: Mon, 20 Jun 2011 13:27:05 +0200
Subject: [PATCH 5/6] Fix bug #276086 crash on exit

---
 kmail/accountmanager.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kmail/accountmanager.cpp b/kmail/accountmanager.cpp
index 1745aa4..ca2a7c8 100644
--- a/kmail/accountmanager.cpp
+++ b/kmail/accountmanager.cpp
@@ -227,7 +227,8 @@ void AccountManager::processNextCheck( bool _newMail )
 
   curAccount->setCheckingMail( true );
   mAcctChecking.append( curAccount );
-  kmkernel->filterMgr()->ref();
+  if( kmkernel->filterMgr() )
+      kmkernel->filterMgr()->ref();
   curAccount->processNewMail( mInteractive );
 }
 
-- 
1.7.9.2