Fix wrong warning in torrent addition dialog (closes #579301)

This commit is contained in:
Christophe Dumez
2010-05-12 18:34:16 +00:00
parent 4ec1fd3968
commit ea99f44893
2 changed files with 11 additions and 4 deletions

View File

@@ -347,8 +347,11 @@ public:
}
bool allFiltered() const {
if(!rootItem->childCount()) return true;
return (rootItem->child(0)->getPriority() == IGNORED);
for(int i=0; i<rootItem->childCount(); ++i) {
if(rootItem->child(i)->getPriority() != IGNORED)
return false;
}
return true;
}
int columnCount(const QModelIndex &parent=QModelIndex()) const {