mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Make member search case insensitive
This commit is contained in:
parent
1cfbac4c92
commit
b51ad45dc2
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue