dont update pieces tab with multiple or none torrents selected - micah

This commit is contained in:
Marcos Pinto 2007-08-01 19:27:42 +00:00
parent 8cc8ffe4a4
commit 8c9b1de33b
1 changed files with 1 additions and 0 deletions

View File

@ -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)