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

Use isEmpty()

parent 9c883f1d
......@@ -209,7 +209,7 @@ void KTNEFMain::loadFile(const QString &filename)
"%1 attachment found", "%1 attachments found", list.count());
statusBar()->showMessage(msg);
mView->setAttachments(list);
enableExtractAll((list.count() > 0));
enableExtractAll(!list.isEmpty());
enableSingleAction(false);
}
}
......
......@@ -337,7 +337,7 @@ void MessageActions::updateActions()
}
}
const bool multiVisible = mVisibleItems.count() > 0 || mCurrentItem.isValid();
const bool multiVisible = !mVisibleItems.isEmpty() || mCurrentItem.isValid();
const bool uniqItem = (itemValid || hasPayload) && (mVisibleItems.count() <= 1);
mReplyActionMenu->setEnabled(hasPayload);
mReplyAction->setEnabled(hasPayload);
......
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