Disable emoticons when emoticons set has vanished

This commit is contained in:
Jean-Marie Traissard 2006-11-16 11:36:48 +00:00
parent 1620ff8471
commit 49136faf40

View file

@ -1668,7 +1668,8 @@ class Interface:
if not os.path.exists(path): if not os.path.exists(path):
# It's maybe a user theme # It's maybe a user theme
path = os.path.join(gajim.MY_EMOTS_PATH, emot_theme) path = os.path.join(gajim.MY_EMOTS_PATH, emot_theme)
if not os.path.exists(path): # theme doesn't exist if not os.path.exists(path): # theme doesn't exist, disable emoticons
gajim.config.set('emoticons_theme', '')
return return
sys.path.append(path) sys.path.append(path)
import emoticons import emoticons