From 37ed3517352799e2654cfdbeb51087c70d271274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 9 Jul 2015 01:44:08 +0200 Subject: Fix kmail crash when start in offline mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit f2e211e2f359c13e153fff5d77a75c5cd6003c72) --- kmail/kmkernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmail/kmkernel.cpp b/kmail/kmkernel.cpp index 6f18a36b1..fb22fca2e 100644 --- a/kmail/kmkernel.cpp +++ b/kmail/kmkernel.cpp @@ -1270,7 +1270,7 @@ void KMKernel::resumeNetworkJobs() BroadcastStatus::instance()->setStatusMsg( i18n("KMail is set to be online; all network jobs resumed")); emit onlineStatusChanged( (GlobalSettings::EnumNetworkState::type)GlobalSettings::networkState() ); - if ( kmkernel->msgSender()->sendImmediate() ) { + if ( kmkernel->msgSender() && kmkernel->msgSender()->sendImmediate() ) { kmkernel->msgSender()->sendQueued(); } } -- cgit v1.2.1