Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e051c297 authored by Laurent Montel's avatar Laurent Montel 😁

Return an ItemFlags not nullptr

parent 297322d8
......@@ -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()) {
......
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