[gnoduino/gnoduino-0-3-0] do not append errorneous empty data to defaults



commit f5924ea878dc77345e58a001959ecfac94357338
Author: Lucian Langa <lucilanga gnome org>
Date:   Sat Feb 11 22:56:11 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]