From 3d1c66b0589bba6f9e3042a742047ccb8443b252 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Wed, 20 Apr 2005 18:15:01 +0000 Subject: [PATCH] use bool(value) to get if that is true or false --- src/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index 67cafc45b..5746f12bc 100644 --- a/src/config.py +++ b/src/config.py @@ -407,7 +407,7 @@ class Preferences_window: def on_sounds_treemodel_row_changed(self, model, path, iter): sound_event = model.get_value(iter, 0) gajim.config.set_per('soundevents', sound_event, 'enabled', - model[path][1] == True) + bool(model[path][1])) gajim.config.set_per('soundevents', sound_event, 'path', \ model.get_value(iter, 2)) self.plugin.save_config()