From 0653680203377697bc41b19fe61dcc31d5869fd5 Mon Sep 17 00:00:00 2001 From: js Date: Fri, 25 Jul 2008 01:16:30 +0000 Subject: [PATCH] Only show mood in account row when show_mood_in_roster_is active. --- src/roster_window.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index b35cec6d6..3db223c22 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -974,13 +974,15 @@ class RosterWindow: self.model[child_iter][C_NAME] = account_name - if gajim.connections[account].mood.has_key('mood') \ + if gajim.config.get('show_mood_in_roster') \ + and gajim.connections[account].mood.has_key('mood') \ and gajim.connections[account].mood['mood'] in MOODS: self.model[child_iter][C_MOOD_PIXBUF] = \ gtkgui_helpers.load_mood_icon( gajim.connections[account].mood['mood']). \ get_pixbuf() - elif gajim.connections[account].mood.has_key('mood'): + elif gajim.config.get('show_mood_in_roster') \ + and gajim.connections[account].mood.has_key('mood'): self.model[child_iter][C_MOOD_PIXBUF] = \ gtkgui_helpers.load_mood_icon('unknown'). \ get_pixbuf()