diff --git a/smsapp/conversationssortfilterproxymodel.cpp b/smsapp/conversationssortfilterproxymodel.cpp index 714bc4374..bc7e375bd 100644 --- a/smsapp/conversationssortfilterproxymodel.cpp +++ b/smsapp/conversationssortfilterproxymodel.cpp @@ -50,7 +50,7 @@ bool ConversationsSortFilterProxyModel::filterAcceptsRow(int sourceRow, const QM if (filterRole() == ConversationListModel::ConversationIdRole) { return sourceModel()->data(index, ConversationListModel::ConversationIdRole) != INVALID_THREAD_ID; } else { - if (sourceModel()->data(index, Qt::DisplayRole).toString().contains(filterRegExp())) { + if (sourceModel()->data(index, Qt::DisplayRole).toString().contains(filterRegularExpression())) { return true; } @@ -58,7 +58,7 @@ bool ConversationsSortFilterProxyModel::filterAcceptsRow(int sourceRow, const QM const QList addressList = sourceModel()->data(index, ConversationListModel::AddressesRole).value>(); for (const ConversationAddress &address : addressList) { QString canonicalAddress = SmsHelper::canonicalizePhoneNumber(address.address()); - if (canonicalAddress.contains(filterRegExp())) { + if (canonicalAddress.contains(filterRegularExpression())) { return true; } }