mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
searchbar: fix warnings for invalid regular expressions
Certain characters such as @ or < were being treated as invalid regular expressions and caused warnings to be raised. Added check for validity of expression. GitLab: #1628 Change-Id: I8b66ebfcf029cd0568bccdcba96672d9005846a9
This commit is contained in:
parent
7330a87082
commit
35d5595401
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ ConversationListProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex& s
|
|||
}
|
||||
} else {
|
||||
Q_FOREACH (const auto& filter, toFilter)
|
||||
if (rx.match(filter).hasMatch()) {
|
||||
if (rx.isValid() && rx.match(filter).hasMatch()) {
|
||||
match = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue