diff --git a/deluge/ui/gtkui/signals.py b/deluge/ui/gtkui/signals.py index 935b98aea..6dacc792b 100644 --- a/deluge/ui/gtkui/signals.py +++ b/deluge/ui/gtkui/signals.py @@ -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) diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index 09725a98b..a4ba0fbe0 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -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):