diff --git a/smsapp/conversationssortfilterproxymodel.cpp b/smsapp/conversationssortfilterproxymodel.cpp index bc7e375bd..9946946c8 100644 --- a/smsapp/conversationssortfilterproxymodel.cpp +++ b/smsapp/conversationssortfilterproxymodel.cpp @@ -58,7 +58,11 @@ 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 QT_VERSION_MAJOR < 6 + if (canonicalAddress.contains(filterRegExp())) { +#else if (canonicalAddress.contains(filterRegularExpression())) { +#endif return true; } }