feat: allow filtering torrents by info hash in qt client (#1763)
* feat: allow filtering torrents by info hash
This commit is contained in:
parent
1077f639b4
commit
59efe4642d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue