summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-07-08 23:44:08 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2015-07-08 23:44:42 (GMT)
commit793982b70afa88768bfbc2e616bbdd38fc247220 (patch)
treee1295b285ce2a8587e742ff1dbb75347ad3788fb
parent19e5646ba63e7255e0532295eaec2f476009d275 (diff)
downloadtdepim-793982b7.zip
tdepim-793982b7.tar.gz
Fix kmail crash when start in offline mode
This resolves Bug 2454 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--kmail/kmkernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmail/kmkernel.cpp b/kmail/kmkernel.cpp
index 6f18a36..fb22fca 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();
}
}