remove old images when we change to an iconset that has no 32x32 icons

This commit is contained in:
Yann Leboulanger 2005-12-14 17:32:38 +00:00
parent b21424e1fa
commit 51dbb1398e
1 changed files with 2 additions and 0 deletions

View File

@ -2177,6 +2177,8 @@ _('If "%s" accepts this request you will know his or her status.') %jid)
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '32x32')
if os.path.exists(path):
self.jabber_state_images['32'] = self.load_iconset(path)
else:
self.jabber_state_images['32'] = {}
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
self.jabber_state_images['16'] = self.load_iconset(path)