From 59efe4642d9f208770ae7f99c3b2674e49c6b67e Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 27 Aug 2021 12:58:47 -0500 Subject: [PATCH] feat: allow filtering torrents by info hash in qt client (#1763) * feat: allow filtering torrents by info hash --- qt/TorrentFilter.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/TorrentFilter.cc b/qt/TorrentFilter.cc index b91747b7d..3852d984a 100644 --- a/qt/TorrentFilter.cc +++ b/qt/TorrentFilter.cc @@ -254,7 +254,8 @@ bool TorrentFilter::filterAcceptsRow(int source_row, QModelIndex const& source_p if (accepts) { auto const text = prefs_.getString(Prefs::FILTER_TEXT); - accepts = text.isEmpty() || tor.name().contains(text, Qt::CaseInsensitive); + accepts = text.isEmpty() || tor.name().contains(text, Qt::CaseInsensitive) || + tor.hash().toString().contains(text, Qt::CaseInsensitive); } return accepts;