--- a/QTfrontend/model/ThemeFilterProxyModel.cpp Mon Mar 19 16:07:08 2018 +0100
+++ b/QTfrontend/model/ThemeFilterProxyModel.cpp Mon Mar 19 18:58:49 2018 +0100
@@ -38,10 +38,20 @@
QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent);
bool isDLC = index.data(ThemeModel::IsDlcRole).toBool();
bool isHidden = index.data(ThemeModel::IsHiddenRole).toBool();
- return (
+ if(
((isFilteringDLC && !isDLC) || !isFilteringDLC) &&
- ((isFilteringHidden && !isHidden) || !isFilteringHidden));
-
+ ((isFilteringHidden && !isHidden) || !isFilteringHidden))
+ {
+ if(!filterRegExp().isEmpty())
+ {
+ // Also check regular expression set by the theme chooser search
+ QString name = index.data(ThemeModel::ActualNameRole).toString();
+ int index = filterRegExp().indexIn(name);
+ return index != -1;
+ }
+ else
+ return true;
+ }
}
else
{