remove duplicate code

This commit is contained in:
Yann Leboulanger 2006-10-15 10:51:26 +00:00
parent f04b5c3902
commit f1dce33515
1 changed files with 2 additions and 4 deletions

View File

@ -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