summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2010-02-09 23:19:15 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2010-02-09 23:19:15 +0100
commit2a7e09e60a40bc9874c41ceb85856688f5a81099 (patch)
tree697686de6bc0dfa292f9dbf0c9b7d7f2910ffeed /src
parentd0f19e435b5a3fecb3fd74b1ba0202364e6dc545 (diff)
downloadabrt-2a7e09e60a40bc9874c41ceb85856688f5a81099.tar.gz
abrt-2a7e09e60a40bc9874c41ceb85856688f5a81099.tar.xz
abrt-2a7e09e60a40bc9874c41ceb85856688f5a81099.zip
Don't show empty 'Not loaded plugins' section - fix#2 rhbz#560971
Diffstat (limited to 'src')
-rw-r--r--src/Gui/PluginsSettingsDialog.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Gui/PluginsSettingsDialog.py b/src/Gui/PluginsSettingsDialog.py
index d6129b1f..787faee6 100644
--- a/src/Gui/PluginsSettingsDialog.py
+++ b/src/Gui/PluginsSettingsDialog.py
@@ -107,7 +107,7 @@ class PluginsSettingsDialog:
# cell_text, toggle_active, toggle_visible, group_name_visible, color, plugin
["<b>%s</b>" % PluginInfo.types[plugin_type], 0, 0, 1, "gray", None])
plugin_rows[plugin_type] = it
- group_empty[plugin_type] = 1
+ group_empty[plugin_type] = it
for entry in pluginlist:
if entry.Description:
text = "<b>%s</b>\n%s" % (entry.getName(), entry.Description)
@@ -118,13 +118,13 @@ class PluginsSettingsDialog:
self.pluginsListStore.append(plugin_rows[plugin_type],
# cell_text, toggle_active, toggle_visible, group_name_visible, color, plugin
[text, entry.Enabled == "yes", 1, 0, "white", entry])
- group_empty[plugin_type] = 0
+ if group_empty.has_key(plugin_type):
+ del group_empty[plugin_type]
# rhbz#560971 "Don't show empty 'Not loaded plugins' section"
- for plugin_type in group_empty.keys():
- if group_empty[plugin_type]:
- self.pluginsListStore.append(plugin_rows[plugin_type],
- # cell_text, toggle_active, toggle_visible, group_name_visible, color, plugin
- ["(none)", 0, 1, 0, "white", None])
+ # don't show any empty groups
+ for it in group_empty.values():
+ self.pluginsListStore.remove(it)
+
self.pluginlist.expand_all()
def dehydrate(self):