summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@localhost.localdomain>2009-11-20 11:21:11 +0100
committerJiri Moskovcak <jmoskovc@localhost.localdomain>2009-11-20 11:21:11 +0100
commita9525e69060cb8ff1bd173475d12088c57ed82ea (patch)
treef2f07d5ab7a2fb17a688c8a47ea851be873c4a45
parent47adbc71583d773d2c5c5f464b4c1583f92f9acc (diff)
downloadabrt-a9525e69060cb8ff1bd173475d12088c57ed82ea.tar.gz
abrt-a9525e69060cb8ff1bd173475d12088c57ed82ea.tar.xz
abrt-a9525e69060cb8ff1bd173475d12088c57ed82ea.zip
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
-rw-r--r--src/Gui/CCMainWindow.py4
-rw-r--r--src/Gui/PluginsSettingsDialog.py4
2 files changed, 6 insertions, 2 deletions
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)