mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 08:03:40 +00:00
[GTKUI] Fix listview error with new config
This commit is contained in:
parent
4e77c46694
commit
ecf5af1e16
@ -229,10 +229,11 @@ class ListView:
|
|||||||
self.set_model_sort()
|
self.set_model_sort()
|
||||||
|
|
||||||
def set_model_sort(self):
|
def set_model_sort(self):
|
||||||
for column_state in self.state:
|
if self.state is not None:
|
||||||
if column_state.sort is not None and column_state.sort > -1:
|
for column_state in self.state:
|
||||||
self.treeview.get_model().set_sort_column_id(column_state.sort, column_state.sort_order)
|
if column_state.sort is not None and column_state.sort > -1:
|
||||||
break
|
self.treeview.get_model().set_sort_column_id(column_state.sort, column_state.sort_order)
|
||||||
|
break
|
||||||
|
|
||||||
def stabilize_sort_func(self, sort_func):
|
def stabilize_sort_func(self, sort_func):
|
||||||
def stabilized(model, iter1, iter2, data):
|
def stabilized(model, iter1, iter2, data):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user