Commit c92a46f2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use isEmpty

parent dabdd8db
Pipeline #34170 failed with stage
in 15 minutes and 13 seconds
...@@ -102,7 +102,7 @@ QVariant ContactInfoProxyModel::data(const QModelIndex &index, int role) const ...@@ -102,7 +102,7 @@ QVariant ContactInfoProxyModel::data(const QModelIndex &index, int role) const
} }
} }
} }
if (groupItemsList.size() && groupRefIdsList.size()) { if (!groupItemsList.isEmpty() && !groupRefIdsList.isEmpty()) {
properties.insert("groupRefIdsList", QVariant::fromValue(groupRefIdsList)); properties.insert("groupRefIdsList", QVariant::fromValue(groupRefIdsList));
fetchItems(groupItemsList, properties); fetchItems(groupItemsList, properties);
} }
......
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