diff --git a/deluge/ui/gtkui/files_tab.py b/deluge/ui/gtkui/files_tab.py index ea2fc3dd1..e0ba54cee 100644 --- a/deluge/ui/gtkui/files_tab.py +++ b/deluge/ui/gtkui/files_tab.py @@ -212,7 +212,7 @@ class FilesTab(Tab): state = { "columns": {}, "sort_id": column_id, - "sort_order": sort_order + "sort_order": int(sort_order) } for index, column in enumerate(self.listview.get_columns()): diff --git a/deluge/ui/gtkui/peers_tab.py b/deluge/ui/gtkui/peers_tab.py index 9a3cd1752..d37c0b68c 100644 --- a/deluge/ui/gtkui/peers_tab.py +++ b/deluge/ui/gtkui/peers_tab.py @@ -166,7 +166,7 @@ class PeersTab(Tab): state = { "columns": {}, "sort_id": column_id, - "sort_order": sort_order + "sort_order": int(sort_order) } for index, column in enumerate(self.listview.get_columns()):