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: