From 8e5473a91dae212645b83b87d4548cdd0edab093 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 16 Jan 2009 03:13:37 +0000 Subject: [PATCH] Fix saving Files tab and Peers tab state --- deluge/ui/gtkui/files_tab.py | 2 +- deluge/ui/gtkui/peers_tab.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()):