From f2edb6d584e8a18445821e7e4cb2fe4861e23c3b Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 17 Apr 2005 13:10:45 +0000 Subject: [PATCH] allow hacking of config for on new message to work [asterix required] --- src/config.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/config.py b/src/config.py index 2cdc2e861..2aa3b137d 100644 --- a/src/config.py +++ b/src/config.py @@ -750,12 +750,15 @@ class Preferences_window: gtk.gdk.color_parse(colSt)) # on new message + only_in_roster = True if gajim.config.get('notify_on_new_message'): self.xml.get_widget('notify_on_new_message_radiobutton').set_active(1) - elif gajim.config.get('autopopup'): - self.xml.get_widget('popup_new_message_radiobutton').set_active(1) - else: - self.xml.get_widget('only_in_roster_radiobutton').set_active(1) + only_in_roster = False + if gajim.config.get('autopopup'): + self.xml.get_widget('popup_new_message_radiobutton').set_active(True) + only_in_roster = False + if only_in_roster: + self.xml.get_widget('only_in_roster_radiobutton').set_active(True) #notify on online statuses st = gajim.config.get('notify_on_online')