From 58c048f1b0c9d7b3b1d76c6bdf551534324b8b4b Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 9 Feb 2014 18:47:55 +0000 Subject: [PATCH] GTKUI: Ensure None value from problem config is empty string for set_text --- deluge/ui/gtkui/preferences.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index 3c4ebbc15..52feb5555 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -373,6 +373,8 @@ class Preferences(component.Component): elif modifier == "value": widget.set_value(float(value)) elif modifier == "text": + if value is None: + value = "" widget.set_text(value) for key in core_widgets.keys():