Make member search case insensitive

This commit is contained in:
Nicolas Werner 2022-08-13 18:13:42 +02:00
parent 1cfbac4c92
commit b51ad45dc2
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -163,6 +163,8 @@ MemberList::sortBy(const MemberSortRoles role)
bool bool
MemberList::filterAcceptsRow(int source_row, const QModelIndex &) const MemberList::filterAcceptsRow(int source_row, const QModelIndex &) const
{ {
return m_model.m_memberList[source_row].first.user_id.contains(filterString) || return m_model.m_memberList[source_row].first.user_id.contains(filterString,
m_model.m_memberList[source_row].first.display_name.contains(filterString); Qt::CaseInsensitive) ||
m_model.m_memberList[source_row].first.display_name.contains(filterString,
Qt::CaseInsensitive);
} }