feat: allow filtering torrents by info hash in qt client (#1763)

* feat: allow filtering torrents by info hash
This commit is contained in:
Charles Kerr 2021-08-27 12:58:47 -05:00 committed by GitHub
parent 1077f639b4
commit 59efe4642d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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;