Commit 7dfb296f authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty

parent 88131edc
......@@ -269,7 +269,7 @@ QList<ContentJobBase *> ComposerPrivate::createEncryptJobs( ContentJobBase *cont
kDebug() << "format:" << format;
kDebug() << "enc data:" << encData.size();
if( encData.size() == 0 ) { // no key data! bail!
if( encData.isEmpty() ) { // no key data! bail!
q->setErrorText( i18n( "No key data for recipients found." ) );
q->setError( Composer::IncompleteError );
q->emitResult();
......
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