Fix kmail crash when start in offline mode

This resolves Bug 2454

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/21/head
Slávek Banko 9 years ago
parent 19e5646ba6
commit 793982b70a

@ -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();
}
}

Loading…
Cancel
Save