diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-02-09 23:19:15 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-02-09 23:19:15 +0100 |
commit | 2a7e09e60a40bc9874c41ceb85856688f5a81099 (patch) | |
tree | 697686de6bc0dfa292f9dbf0c9b7d7f2910ffeed /src/Gui/PluginsSettingsDialog.py | |
parent | d0f19e435b5a3fecb3fd74b1ba0202364e6dc545 (diff) | |
download | abrt-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/Gui/PluginsSettingsDialog.py')
-rw-r--r-- | src/Gui/PluginsSettingsDialog.py | 14 |
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): |