diff --git a/src/gajim.py b/src/gajim.py index d9ebe330b..13d3ea261 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1637,16 +1637,14 @@ class Interface: return menu def init_emoticons(self): - if not gajim.config.get('emoticons_theme'): + emot_theme = gajim.config.get('emoticons_theme') + if not emot_theme: return #initialize emoticons dictionary and unique images list self.emoticons_images = list() self.emoticons = dict() - emot_theme = gajim.config.get('emoticons_theme') - if not emot_theme: - return path = os.path.join(gajim.DATA_DIR, 'emoticons', emot_theme) if not os.path.exists(path): # It's maybe a user theme