From 3397c2487b0b65098274b89711c0a7cebb42c9ba Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Mon, 6 Jun 2011 19:46:02 +0100 Subject: [PATCH] Fix bug introduced on previous commit. We need to get a selection first! --- deluge/ui/gtkui/torrentview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index 595ec5572..34b59877c 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -450,7 +450,7 @@ class TorrentView(listview.ListView, component.Component): def stop(self): """Stops the torrentview""" # We need to clear the liststore - self.treeview.unselect_all() + self.treeview.get_selection().unselect_all() self.liststore.clear() self.prev_status = {} self.filter = None @@ -473,7 +473,7 @@ class TorrentView(listview.ListView, component.Component): see: core.get_torrents_status """ - self.treeview.unselect_all() + self.treeview.get_selection().unselect_all() search_filter = self.filter and self.filter.get('name', None) or None self.filter = dict(filter_dict) #copied version of filter_dict. if search_filter and 'name' not in filter_dict: