From a9525e69060cb8ff1bd173475d12088c57ed82ea Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Fri, 20 Nov 2009 11:21:11 +0100 Subject: GUI: don't read the g-k every time we want to use the setting - if g-k is not available, then user can set the settings at least for the current ABRT session, but it's lost if we forcibly reload it everytime --- src/Gui/CCMainWindow.py | 4 +++- src/Gui/PluginsSettingsDialog.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py index 3ada6f25..ee802a88 100644 --- a/src/Gui/CCMainWindow.py +++ b/src/Gui/CCMainWindow.py @@ -305,7 +305,9 @@ 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) + # self.pluginlist = getPluginInfoList(self.ccdaemon, refresh=True) + # don't force refresh! + self.pluginlist = getPluginInfoList(self.ccdaemon) for plugin in self.pluginlist.getReporterPlugins(): reporters_settings[str(plugin)] = plugin.Settings self.ccdaemon.Report(result, reporters_settings) diff --git a/src/Gui/PluginsSettingsDialog.py b/src/Gui/PluginsSettingsDialog.py index d8eac71e..48e55bf0 100644 --- a/src/Gui/PluginsSettingsDialog.py +++ b/src/Gui/PluginsSettingsDialog.py @@ -90,7 +90,9 @@ class PluginsSettingsDialog: #print "settings hydrate" self.pluginsListStore.clear() try: - pluginlist = getPluginInfoList(self.ccdaemon, refresh=True) + #pluginlist = getPluginInfoList(self.ccdaemon, refresh=True) + # don't force refresh as it will overwrite settings if g-k is not available + pluginlist = getPluginInfoList(self.ccdaemon) except Exception, e: print e #gui_error_message("Error while loading plugins info, please check if abrt daemon is running\n %s" % e) -- cgit