remove unnecessary if

This commit is contained in:
Vincent Hanquez 2005-04-20 18:13:12 +00:00
parent c742cf8e10
commit 8405fc8dbf
1 changed files with 2 additions and 4 deletions

View File

@ -406,10 +406,8 @@ class Preferences_window:
def on_sounds_treemodel_row_changed(self, model, path, iter):
sound_event = model.get_value(iter, 0)
if model[path][1]:
gajim.config.set_per('soundevents', sound_event, 'enabled', True)
else:
gajim.config.set_per('soundevents', sound_event, 'enabled', False)
gajim.config.set_per('soundevents', sound_event, 'enabled',
model[path][1] == True)
gajim.config.set_per('soundevents', sound_event, 'path', \
model.get_value(iter, 2))
self.plugin.save_config()