From c2a24bce8ae09c697b8b35abb78d2a9dbde17759 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 31 Aug 2008 00:55:07 +0000 Subject: [PATCH] Fix tooltips from disappearing --- deluge/ui/gtkui/torrentview.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index 3c960f6ab..69a0435ba 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -273,8 +273,7 @@ class TorrentView(listview.ListView, component.Component): filter_column = self.columns["filter"].column_indices[0] # Update the torrent view model with data we've received status = self.status - (sort_id, sort_type) = self.treeview.get_model().get_sort_column_id() - self.treeview.get_model().set_sort_column_id(-1, gtk.SORT_ASCENDING) + for row in self.liststore: torrent_id = row[self.columns["torrent_id"].column_indices[0]] @@ -307,7 +306,7 @@ class TorrentView(listview.ListView, component.Component): row[index] = row_value except: pass - self.treeview.get_model().set_sort_column_id(sort_id, sort_type) + # Update the toolbar buttons just in case some state has changed component.get("ToolBar").update_buttons() component.get("MenuBar").update_menu()