Prefs: Fix display when a comment node exists in config

This commit is contained in:
Worros 2009-11-25 09:06:01 +08:00
parent 339a0133a9
commit 1b2a45b77e

View File

@ -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):