From 8c9b1de33bbad57af30ac722fd4111c60e9b9a1e Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 1 Aug 2007 19:27:42 +0000 Subject: [PATCH] dont update pieces tab with multiple or none torrents selected - micah --- plugins/TorrentPieces/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/TorrentPieces/__init__.py b/plugins/TorrentPieces/__init__.py index 26863e84b..b83d2bb34 100644 --- a/plugins/TorrentPieces/__init__.py +++ b/plugins/TorrentPieces/__init__.py @@ -83,6 +83,7 @@ class TorrentPieces: unique_id = self.parent.get_selected_torrent() # If no torrents added or more than one torrent selected if unique_id is None: + self.tab_pieces.clear_pieces_store() return if unique_id != self.tab_pieces.unique_id: self.manager.disconnect_event(self.manager.constants['EVENT_PIECE_FINISHED'], self.tab_pieces.handle_event)