Skip to content

Commit

Permalink
Make member search case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
deepbluev7 committed Aug 13, 2022
1 parent 1cfbac4 commit b51ad45
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MemberList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ MemberList::sortBy(const MemberSortRoles role)
bool
MemberList::filterAcceptsRow(int source_row, const QModelIndex &) const
{
return m_model.m_memberList[source_row].first.user_id.contains(filterString) ||
m_model.m_memberList[source_row].first.display_name.contains(filterString);
return m_model.m_memberList[source_row].first.user_id.contains(filterString,
Qt::CaseInsensitive) ||
m_model.m_memberList[source_row].first.display_name.contains(filterString,
Qt::CaseInsensitive);
}

0 comments on commit b51ad45

Please sign in to comment.