mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Fix remembering sorted column in the torrent list
This commit is contained in:
parent
91dfbffd69
commit
740506343f
2 changed files with 8 additions and 1 deletions
|
@ -4,6 +4,7 @@ Deluge 1.1.1 - (In Development)
|
|||
|
||||
GtkUI:
|
||||
* Fix opening links from Help menu and others
|
||||
* Fix remembering sorted column in the torrent list
|
||||
|
||||
Misc:
|
||||
* Fix bdecoding some torrent files
|
||||
|
|
|
@ -164,8 +164,14 @@ class ListView:
|
|||
model_filter = self.liststore.filter_new()
|
||||
model_filter.set_visible_column(
|
||||
self.columns["filter"].column_indices[0])
|
||||
sort_info = None
|
||||
if self.model_filter:
|
||||
sort_info = self.model_filter.get_sort_column_id()
|
||||
|
||||
self.model_filter = gtk.TreeModelSort(model_filter)
|
||||
self.set_sort_functions()
|
||||
if sort_info and sort_info[0] and sort_info[1] > -1:
|
||||
self.model_filter.set_sort_column_id(sort_info[0], sort_info[1])
|
||||
#self.set_sort_functions()
|
||||
self.treeview.set_model(self.model_filter)
|
||||
|
||||
def set_sort_functions(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue