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 09:18:39 +0200
commit37ed3517352799e2654cfdbeb51087c70d271274 (patch)
treef723d5a60b88fcb1a9b3a9b72eb98d19688969ff
parent08aedacdb691c46629f524ba26f2460d70e407a8 (diff)
downloadtdepim-37ed3517352799e2654cfdbeb51087c70d271274.tar.gz
tdepim-37ed3517352799e2654cfdbeb51087c70d271274.zip
Fix kmail crash when start in offline mode
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit f2e211e2f359c13e153fff5d77a75c5cd6003c72)
-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();
}
}