From 4b620896a55fc9b7e3aee7753e1f5ad7abb607f9 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sat, 12 Apr 2008 05:08:33 +0000 Subject: [PATCH] fix set_current_folder when None --- deluge/ui/gtkui/preferences.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index ecb09ab41..6d1cd884a 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -281,7 +281,8 @@ class Preferences(component.Component): widget.set_sensitive(True) if modifier == "filename": - widget.set_current_folder(value) + if value: + widget.set_current_folder(value) elif modifier == "active": widget.set_active(value) elif modifier == "not_active":