aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-12-05 07:37:16 +0100
committerMontel Laurent <[email protected]>2017-12-05 07:37:16 +0100
commite051c2976ed5a27454c3de882179a99f1f2e781e (patch)
tree4fa027347b5ea33beafa38ee8072e42a18e1fe7f
parent297322d8c2020e71ee56e04463ec66e1afe32d81 (diff)
Return an ItemFlags not nullptrv17.12.0
-rw-r--r--src/akonadi-contacts/contactsfilterproxymodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/akonadi-contacts/contactsfilterproxymodel.cpp b/src/akonadi-contacts/contactsfilterproxymodel.cpp
index 60f891b..810228a 100644
--- a/src/akonadi-contacts/contactsfilterproxymodel.cpp
+++ b/src/akonadi-contacts/contactsfilterproxymodel.cpp
@@ -140,7 +140,7 @@ Qt::ItemFlags ContactsFilterProxyModel::flags(const QModelIndex &index) const
{
if (!index.isValid()) {
// Don't crash
- return nullptr;
+ return Qt::NoItemFlags;
}
const Akonadi::Collection collection = index.data(Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>();
if (collection.isValid()) {