summaryrefslogtreecommitdiffstats
path: root/src/Gui
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
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')
-rw-r--r--src/Gui/ABRTPlugin.py5
-rw-r--r--src/Gui/CCMainWindow.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/Gui/ABRTPlugin.py b/src/Gui/ABRTPlugin.py
index 5bae6d91..8d687f83 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)
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index f8a20545..1b4848dc 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -126,7 +126,7 @@ class MainWindow():
# load data
#self.load()
- self.pluginlist = getPluginInfoList(self.ccdaemon)
+ self.pluginlist = None
def on_daemon_state_changed_cb(self, widget, state):
if state == "up":
@@ -299,6 +299,7 @@ class MainWindow():
self.pBarWindow.show_all()
self.timer = gobject.timeout_add(100, self.progress_update_cb)
reporters_settings = {}
+ self.pluginlist = getPluginInfoList(self.ccdaemon, refresh=True)
for plugin in self.pluginlist.getReporterPlugins():
reporters_settings[str(plugin)] = plugin.Settings
self.ccdaemon.Report(result, reporters_settings)