show only folders in iconsets and emoticons combobox. fixes #2638

This commit is contained in:
Yann Leboulanger 2006-11-04 02:39:11 +00:00
parent 43ddd31399
commit fefbc29079
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,8 @@ class PreferencesWindow:
emoticons_combobox.set_model(model)
l = []
for dir in emoticons_list:
if not os.path.isdir(os.path.join(gajim.DATA_DIR, 'emoticons', dir)):
continue
if dir != '.svn':
l.append(dir)
l.append(_('Disabled'))
@ -146,6 +148,8 @@ class PreferencesWindow:
self.iconset_combobox.set_model(model)
l = []
for dir in iconsets_list:
if not os.path.isdir(os.path.join(gajim.DATA_DIR, 'iconsets', dir)):
continue
if dir != '.svn' and dir != 'transports':
l.append(dir)
if l.count == 0: