From 680c30e0def82960b2d276bf8473978ac87857b8 Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Thu, 12 Jul 2007 16:02:42 +0000 Subject: [PATCH] Minor update UI code clean up. --- src/interface.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/interface.py b/src/interface.py index 77a34fe23..0b3b84193 100644 --- a/src/interface.py +++ b/src/interface.py @@ -491,15 +491,11 @@ class DelugeGTK: if is_selected: # Torrent is already selected, we don't need to do anything return not self.right_click - unique_id = model.get_value(model.get_iter(path), 0) - state = self.manager.get_torrent_state(unique_id) - # A new torrent has been selected, need to update parts of interface - self.text_summary_total_size.set_text(common.fsize(state["total_size"])) - self.text_summary_pieces.set_text(str(state["num_pieces"])) - self.text_summary_tracker.set_text(str(state["tracker"])) - # Now for the File tab + + self.peer_store.clear() self.file_store.clear() + unique_id = model.get_value(model.get_iter(path), 0) self.update_torrent_info_widget(unique_id) return True