From fefbc2907912cb703271e126e52690b82b7d87e2 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 4 Nov 2006 02:39:11 +0000 Subject: [PATCH] show only folders in iconsets and emoticons combobox. fixes #2638 --- src/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.py b/src/config.py index e8cc34f96..aa5314cbb 100644 --- a/src/config.py +++ b/src/config.py @@ -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: