[gnoduino] do not append errorneous empty data to defaults
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnoduino] do not append errorneous empty data to defaults
- Date: Sat, 11 Feb 2012 21:57:22 +0000 (UTC)
commit 5b56ebe778e315ce3c73a99cd0dd65a5242129d0
Author: Lucian Langa <lucilanga gnome org>
Date: Sat Feb 11 22:55:36 2012 +0100
do not append errorneous empty data to defaults
src/prefs.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/prefs.py b/src/prefs.py
index dc9c237..1cea6fe 100644
--- a/src/prefs.py
+++ b/src/prefs.py
@@ -60,6 +60,7 @@ class preferences(object):
self.backend = 1
client = gconf.client_get_default()
for i in config_keys:
+ val = None
self.mapping.append([i[0], i[1]])
if i[2] is 'int':
val = client.get_int(i[1])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]