From 0918272480e8a78b51bbafb69247a187bbd3f988 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 17 Aug 2008 23:24:16 +0000 Subject: [PATCH] Fix not displaying file list when state changes --- deluge/ui/gtkui/files_tab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/files_tab.py b/deluge/ui/gtkui/files_tab.py index 99b25cbac..1a369cecc 100644 --- a/deluge/ui/gtkui/files_tab.py +++ b/deluge/ui/gtkui/files_tab.py @@ -249,7 +249,7 @@ class FilesTab(Tab): torrent_id = torrent_id[0] else: # No torrent is selected in the torrentview - self.treestore.clear() + self.clear() return if torrent_id != self.torrent_id: @@ -275,6 +275,7 @@ class FilesTab(Tab): def clear(self): self.treestore.clear() + self.torrent_id = None def _on_row_activated(self, tree, path, view_column): if client.is_localhost: