Commit 39ba9fac authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

minor optimization

parent e3983e0e
......@@ -86,10 +86,10 @@ bool AkonadiSender::doSend( const KMime::Message::Ptr &aMsg, short sendNow )
if( sendNow == -1 ) {
sendNow = MessageComposer::MessageComposerSettings::self()->sendImmediate(); // -1 == use default setting
}
if ( !sendNow ) {
sendOrQueueMessage( aMsg, MessageComposer::MessageSender::SendLater );
} else {
if ( sendNow ) {
sendOrQueueMessage( aMsg, MessageComposer::MessageSender::SendImmediate );
} else {
sendOrQueueMessage( aMsg, MessageComposer::MessageSender::SendLater );
}
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment