From 39e9e77ec6c1bceae0b7d119a485d53a2f9ebde6 Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Mon, 6 Aug 2007 02:14:18 +0000 Subject: [PATCH] Properly update the Files tab when multiple torrents selected. --- plugins/TorrentFiles/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/TorrentFiles/__init__.py b/plugins/TorrentFiles/__init__.py index e9320d248..047ed4dcf 100644 --- a/plugins/TorrentFiles/__init__.py +++ b/plugins/TorrentFiles/__init__.py @@ -72,14 +72,18 @@ class TorrentFiles: for page in xrange(numPages): if self.parentNotebook.get_nth_page(page) == self.topWidget: unique_id = self.parent.get_selected_torrent() + if unique_id is None: - #if no torrents added or more than one torrent selected + #if no torrents added or more than one torrent selected self.tab_files.clear_file_store() + self.tab_files.set_unique_id(unique_id) return + if self.tab_files.file_unique_id != unique_id: self.tab_files.clear_file_store() self.tab_files.set_unique_id(unique_id) self.tab_files.prepare_file_store() else: self.tab_files.update_file_store() + break