Fix labels.

This commit is contained in:
Andrew Resch 2008-01-19 23:11:12 +00:00
parent 0f7a91797f
commit 42b5f6872c

View File

@ -271,7 +271,10 @@ class TorrentView(listview.ListView, component.Component):
return
torrent_id = model.get_value(row, 0)
value = client.get_torrent_status(torrent_id, [field])[field]
try:
value = self.status[torrent_id][field]
except:
return
# Condition is True, so lets show this row, if not we hide it
if value == condition:
model.set_value(row, filter_column, True)