From 793982b70afa88768bfbc2e616bbdd38fc247220 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: [PATCH] Fix kmail crash when start in offline mode This resolves Bug 2454 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kmail/kmkernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmail/kmkernel.cpp b/kmail/kmkernel.cpp index 6f18a36b..fb22fca2 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(); } }