Commit 00e10b8e authored by Alexander Trufanov's avatar Alexander Trufanov
Browse files

Fix a bug in torrent content filtering

parent d22d5e74
......@@ -45,7 +45,7 @@ bool TreeFilterModel::filterAcceptsRow(int source_row, const QModelIndex& source
// now walk over each child recursively and check if one matches, if so we need to accept this
int child = 0;
while (sourceModel()->hasIndex(0, 0, idx)) {
while (sourceModel()->hasIndex(child, 0, idx)) {
if (filterAcceptsRow(child, idx))
return true;
child++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment