diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-03 18:02:40 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-03 18:02:40 +0100 |
commit | fabdf82b7487b193225e971507a34a2096928b69 (patch) | |
tree | 5d73103f6024f52574e9570faf1b0f8b210692d2 /src/Gui | |
parent | 412ebc00ca3ccbbb6a60094a67d1402376298c85 (diff) | |
download | abrt-fabdf82b7487b193225e971507a34a2096928b69.tar.gz abrt-fabdf82b7487b193225e971507a34a2096928b69.tar.xz abrt-fabdf82b7487b193225e971507a34a2096928b69.zip |
GUI: fix rhbz#560971 "Don't show empty 'Not loaded plugins' section"
also fix bad plugin descr for TicketUploader
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Gui')
-rw-r--r-- | src/Gui/PluginsSettingsDialog.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/Gui/PluginsSettingsDialog.py b/src/Gui/PluginsSettingsDialog.py index 611a8c59..0ba390da 100644 --- a/src/Gui/PluginsSettingsDialog.py +++ b/src/Gui/PluginsSettingsDialog.py @@ -97,22 +97,34 @@ class PluginsSettingsDialog: # don't force refresh as it will overwrite settings if g-k is not available pluginlist = getPluginInfoList(self.ccdaemon) except Exception, e: - print e + log("Error while loading plugins info: %s", e) #gui_error_message("Error while loading plugins info, please check if abrt daemon is running\n %s" % e) return plugin_rows = {} + group_empty = {} for plugin_type in PluginInfo.types.keys(): it = self.pluginsListStore.append(None, + # 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 for entry in pluginlist: if entry.Description: text = "<b>%s</b>\n%s" % (entry.getName(), entry.Description) else: # non-loaded plugins have empty description text = "<b>%s</b>" % entry.getName() - self.pluginsListStore.append(plugin_rows[entry.getType()], + plugin_type = entry.getType() + 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 + # 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]) self.pluginlist.expand_all() def dehydrate(self): |