Commit 2c7422da authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty

parent 3ac9424f
......@@ -540,7 +540,7 @@ Kleo::KeyListViewItem *Kleo::KeyListView::firstChild() const
Kleo::KeyListViewItem *Kleo::KeyListView::selectedItem() const
{
QList<KeyListViewItem *> selection = selectedItems();
if (selection.size() == 0) {
if (selection.isEmpty()) {
return nullptr;
}
return selection.first();
......
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