From b3dcc2ccd55d9e380f9fe0e040aacfbc046d380d Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 6 Oct 2009 14:49:47 +0200 Subject: GUI: call Report() with the latest pluginsettings - pluginlist is cached so it should be refreshed before Report() is called otherwise we get the old settings to the daemon --- src/Gui/ABRTPlugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Gui/ABRTPlugin.py') diff --git a/src/Gui/ABRTPlugin.py b/src/Gui/ABRTPlugin.py index 5bae6d9..8d687f8 100644 --- a/src/Gui/ABRTPlugin.py +++ b/src/Gui/ABRTPlugin.py @@ -35,7 +35,10 @@ class PluginSettings(dict): settings = self.conf.load(name) # overwrite defaluts with user setting for key in settings.keys(): - self[str(key)] = str(settings[key]) + # only rewrite keys needed by the plugin + # e.g we don't want a pass field for logger + if key in default_settings.keys(): + self[str(key)] = str(settings[key]) def save(self, name): self.conf.save(name, self) -- cgit