Commit 9ebefc55 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 33ceb39b
......@@ -82,7 +82,7 @@ void CompactPage::onCollectionFetchCheck( KJob *job )
DeletedItemsAttribute *attr
= mboxCollection.attribute<DeletedItemsAttribute>( Akonadi::Entity::AddIfMissing );
if ( attr->deletedItemOffsets().size() > 0 ) {
if ( !attr->deletedItemOffsets().isEmpty() ) {
ui.compactButton->setEnabled( true );
ui.messageLabel->setText( i18np( "(1 message marked for deletion)",
"(%1 messages marked for deletion)", attr->deletedItemOffsets().size() ) );
......
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