Call history: Search into display name and address.

This commit is contained in:
Julien Wadel 2024-12-03 19:01:42 +01:00
parent 593863b4c2
commit 550295fbe4

View file

@ -59,8 +59,7 @@ bool CallHistoryProxy::SortFilterList::filterAcceptsRow(int sourceRow, const QMo
QRegularExpression::CaseInsensitiveOption | QRegularExpression::CaseInsensitiveOption |
QRegularExpression::UseUnicodePropertiesOption); QRegularExpression::UseUnicodePropertiesOption);
auto callLog = getItemAtSource<CallHistoryList, CallHistoryCore>(sourceRow); auto callLog = getItemAtSource<CallHistoryList, CallHistoryCore>(sourceRow);
show = show = callLog->mDisplayName.contains(search) || callLog->mRemoteAddress.contains(search);
callLog->mIsConference ? callLog->mDisplayName.contains(search) : callLog->mRemoteAddress.contains(search);
} }
return show; return show;
} }