diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-07-26 20:14:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 20:14:18 +0200 |
commit | 86573a5ccd82513330f02695c1556e555a82b8c6 (patch) | |
tree | 9b98e3bef69c9624c50efa5692d6ffa315cf144c /launcher/ui | |
parent | 65a945f968459786bc235d37bf1302d03ccd07d6 (diff) | |
parent | 3aa2003951eee6a25a43fc8a78480f1512306429 (diff) | |
download | PrismLauncher-86573a5ccd82513330f02695c1556e555a82b8c6.tar.gz PrismLauncher-86573a5ccd82513330f02695c1556e555a82b8c6.tar.bz2 PrismLauncher-86573a5ccd82513330f02695c1556e555a82b8c6.zip |
Merge pull request #961 from flowln/fix_resource_filter
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/pages/instance/ExternalResourcesPage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/ui/pages/instance/ExternalResourcesPage.cpp b/launcher/ui/pages/instance/ExternalResourcesPage.cpp index d06f412b..69c20309 100644 --- a/launcher/ui/pages/instance/ExternalResourcesPage.cpp +++ b/launcher/ui/pages/instance/ExternalResourcesPage.cpp @@ -32,13 +32,13 @@ class SortProxy : public QSortFilterProxyModel { const auto& mod = model->at(source_row); - if (mod.name().contains(filterRegularExpression())) + if (filterRegularExpression().match(mod.name()).hasMatch()) return true; - if (mod.description().contains(filterRegularExpression())) + if (filterRegularExpression().match(mod.description()).hasMatch()) return true; for (auto& author : mod.authors()) { - if (author.contains(filterRegularExpression())) { + if (filterRegularExpression().match(author).hasMatch()) { return true; } } @@ -182,7 +182,7 @@ void ExternalResourcesPage::retranslate() void ExternalResourcesPage::filterTextChanged(const QString& newContents) { m_viewFilter = newContents; - m_filterModel->setFilterFixedString(m_viewFilter); + m_filterModel->setFilterRegularExpression(m_viewFilter); } void ExternalResourcesPage::runningStateChanged(bool running) |