summaryrefslogtreecommitdiffstats
path: root/src/Gui/ABRTPlugin.py
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-10-06 14:49:47 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-10-06 14:49:47 +0200
commitb3dcc2ccd55d9e380f9fe0e040aacfbc046d380d (patch)
tree11ba5a47cc469d438c624a85b81fb59a255a903e /src/Gui/ABRTPlugin.py
parent8afb8ed593b09d738582b9556dcb6e1c1178f742 (diff)
downloadabrt-b3dcc2ccd55d9e380f9fe0e040aacfbc046d380d.tar.gz
abrt-b3dcc2ccd55d9e380f9fe0e040aacfbc046d380d.tar.xz
abrt-b3dcc2ccd55d9e380f9fe0e040aacfbc046d380d.zip
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
Diffstat (limited to 'src/Gui/ABRTPlugin.py')
-rw-r--r--src/Gui/ABRTPlugin.py5
1 files changed, 4 insertions, 1 deletions
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)