use bool(value) to get if that is true or false

This commit is contained in:
Vincent Hanquez 2005-04-20 18:15:01 +00:00
parent 8405fc8dbf
commit 3d1c66b058
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ class Preferences_window:
def on_sounds_treemodel_row_changed(self, model, path, iter): def on_sounds_treemodel_row_changed(self, model, path, iter):
sound_event = model.get_value(iter, 0) sound_event = model.get_value(iter, 0)
gajim.config.set_per('soundevents', sound_event, 'enabled', gajim.config.set_per('soundevents', sound_event, 'enabled',
model[path][1] == True) bool(model[path][1]))
gajim.config.set_per('soundevents', sound_event, 'path', \ gajim.config.set_per('soundevents', sound_event, 'path', \
model.get_value(iter, 2)) model.get_value(iter, 2))
self.plugin.save_config() self.plugin.save_config()