summaryrefslogtreecommitdiffstats
path: root/src/Gui
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-06 14:48:51 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-06 14:48:51 +0200
commit318ee51098caa3a06b45823f2c96b4e68f27b459 (patch)
tree93468e8540fad28a1da9b6e3c829890c26b211c2 /src/Gui
parentfba1f5decbef8b8fea41de100b73ac53b29b934a (diff)
downloadabrt-318ee51098caa3a06b45823f2c96b4e68f27b459.tar.gz
abrt-318ee51098caa3a06b45823f2c96b4e68f27b459.tar.xz
abrt-318ee51098caa3a06b45823f2c96b4e68f27b459.zip
Fix Bug 526220 - [abrt] crash detected in abrt-gui-0.0.9-2.fc12
Caused by lack of sanity checking on .conf contents... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Gui')
-rw-r--r--src/Gui/SettingsDialog.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Gui/SettingsDialog.py b/src/Gui/SettingsDialog.py
index 4d85cd78..596a5f9b 100644
--- a/src/Gui/SettingsDialog.py
+++ b/src/Gui/SettingsDialog.py
@@ -76,7 +76,7 @@ class SettingsDialog:
self.pluginlist = getPluginInfoList(self.ccdaemon, refresh=True)
except Exception, e:
print "SettingsDialog: ", e
-
+
## hydrate cron jobs:
for key,val in self.settings["Cron"].iteritems():
# actionas are separated by ','
@@ -91,6 +91,9 @@ class SettingsDialog:
self.settings["Cron"][key].remove(plugin.getName())
# hydrate common
common = self.settings["Common"]
+ # ensure that all expected keys exist:
+ if not common.has_key("OpenGPGCheck"):
+ common["OpenGPGCheck"] = "no" # check unsigned pkgs too
## gpgcheck
self.builder.get_object("cbOpenGPGCheck").set_active(common["OpenGPGCheck"] == 'yes')
## database