Fix not showing new torrents if you don't use the All label first

This commit is contained in:
Andrew Resch 2008-08-17 04:18:59 +00:00
parent b1947d508d
commit 477d5c0def
2 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,8 @@ class Signals(component.Component):
log.debug("torrent id: %s", torrent_id)
# Add the torrent to the treeview
component.get("TorrentView").add_row(torrent_id)
component.get("TorrentView").mark_dirty(torrent_id)
def torrent_removed_signal(self, torrent_id):
log.debug("torrent_remove signal received..")
log.debug("torrent id: %s", torrent_id)

View File

@ -189,6 +189,7 @@ class TorrentView(listview.ListView, component.Component):
def _on_session_state(self, state):
for torrent_id in state:
self.add_row(torrent_id, update=False)
self.mark_dirty(torrent_id)
self.update()
def stop(self):