From 1b2a45b77e28db655fbacef491f4b361c3c516a1 Mon Sep 17 00:00:00 2001 From: Worros Date: Wed, 25 Nov 2009 09:06:01 +0800 Subject: [PATCH] Prefs: Fix display when a comment node exists in config --- pyfpdb/GuiPrefs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/GuiPrefs.py b/pyfpdb/GuiPrefs.py index 18ffaeef..ada9cb51 100755 --- a/pyfpdb/GuiPrefs.py +++ b/pyfpdb/GuiPrefs.py @@ -90,7 +90,7 @@ class GuiPrefs: #iter = self.configStore.append( parent, [node.nodeValue, None] ) iter = None - if node.nodeType != node.TEXT_NODE: + if node.nodeType != node.TEXT_NODE and node.nodeType != node.COMMENT_NODE: iter = self.configStore.append( parent, [node, setting, value] ) if node.hasAttributes(): for i in xrange(node.attributes.length):