summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com>2024-10-10 13:45:40 +0200
committerGitHub <noreply@github.com>2024-10-10 13:45:40 +0200
commit71434efaa98eff5bf6182b5151a367be61522474 (patch)
treeef381390e6ffa0f0424074f77a6bf867c44cf45b
parent8f1dbe9f3546d685aca84a12476d564a04eeb7aa (diff)
Include notes in search when filtering mods if the column is enabled (#2139)
-rw-r--r--src/modlistsortproxy.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp
index 704ec10b..3cc7de40 100644
--- a/src/modlistsortproxy.cpp
+++ b/src/modlistsortproxy.cpp
@@ -460,7 +460,8 @@ bool ModListSortProxy::filterMatchesMod(ModInfo::Ptr info, bool enabled) const
// Search by notes
if (!foundKeyword && m_EnabledColumns[ModList::COL_NOTES] &&
- info->comments().contains(currentKeyword, Qt::CaseInsensitive)) {
+ (info->notes().contains(currentKeyword, Qt::CaseInsensitive) ||
+ info->comments().contains(currentKeyword, Qt::CaseInsensitive))) {
foundKeyword = true;
}