Skip to content

Commit

Permalink
Include notes in search when filtering mods if the column is enabled (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanFeenstra authored Oct 10, 2024
1 parent 8f1dbe9 commit 71434ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modlistsortproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 71434ef

Please sign in to comment.