mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-11 19:08:40 +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:
|
GtkUI:
|
||||||
* Fix opening links from Help menu and others
|
* Fix opening links from Help menu and others
|
||||||
|
* Fix remembering sorted column in the torrent list
|
||||||
|
|
||||||
Misc:
|
Misc:
|
||||||
* Fix bdecoding some torrent files
|
* Fix bdecoding some torrent files
|
||||||
|
|
|
@ -164,8 +164,14 @@ class ListView:
|
||||||
model_filter = self.liststore.filter_new()
|
model_filter = self.liststore.filter_new()
|
||||||
model_filter.set_visible_column(
|
model_filter.set_visible_column(
|
||||||
self.columns["filter"].column_indices[0])
|
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.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)
|
self.treeview.set_model(self.model_filter)
|
||||||
|
|
||||||
def set_sort_functions(self):
|
def set_sort_functions(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue