From e47e7920cc6b3e3d1eeda958d0ba5d5f90f64e7b Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 23 Sep 2007 09:41:53 +0000 Subject: [PATCH] change where clearing of torrentdetails is done --- deluge/ui/gtkui/signals.py | 1 + deluge/ui/gtkui/torrentdetails.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/signals.py b/deluge/ui/gtkui/signals.py index 3ae091c0c..1698af094 100644 --- a/deluge/ui/gtkui/signals.py +++ b/deluge/ui/gtkui/signals.py @@ -59,6 +59,7 @@ class Signals: log.debug("torrent id: %s", torrent_id) # Remove the torrent from the treeview self.ui.mainwindow.torrentview.remove_row(torrent_id) + self.ui.mainwindow.torrentdetails.clear() def torrent_paused(self, torrent_id): log.debug("torrent_paused signal received..") diff --git a/deluge/ui/gtkui/torrentdetails.py b/deluge/ui/gtkui/torrentdetails.py index c99605639..f7fd2e0c2 100644 --- a/deluge/ui/gtkui/torrentdetails.py +++ b/deluge/ui/gtkui/torrentdetails.py @@ -84,7 +84,6 @@ class TorrentDetails: selected = selected[0] else: # No torrent is selected in the torrentview - self.clear() return # Get the torrent status