Skip to content
Snippets Groups Projects
Commit e8b0090e authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

set iconset to DEFAULT_ICONSET when configured one doesn't exist. Fixes #5083

parent 0ed983bd
No related branches found
No related tags found
No related merge requests found
......@@ -962,11 +962,17 @@ def make_jabber_state_images():
'''initialise jabber_state_images dict'''
iconset = gajim.config.get('iconset')
if iconset:
path = os.path.join(helpers.get_iconset_path(iconset), '16x16')
if not os.path.exists(path):
if helpers.get_iconset_path(iconset):
path = os.path.join(helpers.get_iconset_path(iconset), '16x16')
if not os.path.exists(path):
iconset = gajim.config.DEFAULT_ICONSET
gajim.config.set('iconset', iconset)
else:
iconset = gajim.config.DEFAULT_ICONSET
gajim.config.set('iconset', iconset)
else:
iconset = gajim.config.DEFAULT_ICONSET
gajim.config.set('iconset', iconset)
path = os.path.join(helpers.get_iconset_path(iconset), '32x32')
gajim.interface.jabber_state_images['32'] = load_iconset(path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment