From 71434efaa98eff5bf6182b5151a367be61522474 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:45:40 +0200 Subject: [PATCH] Include notes in search when filtering mods if the column is enabled (#2139) --- src/modlistsortproxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 704ec10b1..3cc7de40b 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; }