From d1a62c85a64c2ed93f5acaf63aa865050fea9698 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Tue, 4 Oct 2022 21:47:24 +0200 Subject: [PATCH] fix: make multi-word search terms possible Signed-off-by: Sefa Eyeoglu --- launcher/ui/instanceview/InstanceTableProxyModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/ui/instanceview/InstanceTableProxyModel.cpp b/launcher/ui/instanceview/InstanceTableProxyModel.cpp index 371a4fd14..f18e92636 100644 --- a/launcher/ui/instanceview/InstanceTableProxyModel.cpp +++ b/launcher/ui/instanceview/InstanceTableProxyModel.cpp @@ -113,7 +113,7 @@ bool InstanceTableProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex& QList InstanceTableProxyModel::parseFilterQuery(QString query) { - const QRegularExpression pattern = QRegularExpression("(?:(?\\S+):)?(?:(?\\S+)|\"(?.+)\")"); + const QRegularExpression pattern = QRegularExpression("(?:(?\\S+):)?(?:\"(?.+)\"|(?\\S+))"); QList queries; QRegularExpressionMatchIterator it = pattern.globalMatch(query);