summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-07-09 01:44:08 +0200
committerSlávek Banko <[email protected]>2015-07-09 01:44:42 +0200
commit793982b70afa88768bfbc2e616bbdd38fc247220 (patch)
treee1295b285ce2a8587e742ff1dbb75347ad3788fb
parent19e5646ba63e7255e0532295eaec2f476009d275 (diff)
downloadtdepim-793982b70afa88768bfbc2e616bbdd38fc247220.tar.gz
tdepim-793982b70afa88768bfbc2e616bbdd38fc247220.zip
Fix kmail crash when start in offline mode
This resolves Bug 2454 Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r--kmail/kmkernel.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}
}