<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -92,23 +92,31 @@ void XmlKnob::SetupWidget(WKnob&amp; widget, QDomElement const &amp; element)
 
 	// Set background pixmap if available
 	if (!selectNode(node, &quot;BackPath&quot;).isNull())
-		setPixmapBackground(getPath(selectNodeQString(node, &quot;BackPath&quot;)));
+		setPixmapBackground(getPath(selectNodeValue(node, &quot;BackPath&quot;)));
 
-	// Number of states. Depends if disabled pics are defined as well
-	if (!selectNode(node, &quot;DisabledPath&quot;).isNull())
-		setPositions(selectNodeInt(node, &quot;NumberStates&quot;),true);
+	int states = 0;
+	QError* pError = selectNodeValue&lt;int&gt;(node, &quot;NumberStates&quot;, &amp;states);
+	
+	if(pError)
+		XmlParse::ErrorWarning(pError);
 	else
-		setPositions(selectNodeInt(node, &quot;NumberStates&quot;),false);
+	{
+		// Number of states. Depends if disabled pics are defined as well
+		if (!selectNode(node, &quot;DisabledPath&quot;).isNull())
+			setPositions(states,true);
+		else
+			setPositions(states,false);
+	}
 
 	// Load knob pixmaps
-	QString path = selectNodeQString(node, &quot;Path&quot;);
+	QString path = selectNodeValue(node, &quot;Path&quot;);
 	for (int i=0; i&lt;m_iNoPos; ++i)
 		setPixmap(i, getPath(path.arg(i)));
 
 	// See if disabled images is defined, and load them...
 	if (!selectNode(node, &quot;DisabledPath&quot;).isNull())
 	{
-		path = selectNodeQString(node, &quot;DisabledPath&quot;);
+		path = selectNodeValue(node, &quot;DisabledPath&quot;);
 		for (int i=0; i&lt;m_iNoPos; ++i)
 			setPixmap(i+m_iNoPos, getPath(path.arg(i)));
 		</diff>
      <filename>mixxx/src/xml/xmlwidgets.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1b5c9be9431e16f2607659e747af576d758ddac3</id>
    </parent>
  </parents>
  <author>
    <name>LCID Fire</name>
    <email>lcid-fire@gmx.net</email>
  </author>
  <url>http://github.com/LCID-Fire/mixxx/commit/acafdc8eaa1bc791789f3b74da29c71ed7ad39d4</url>
  <id>acafdc8eaa1bc791789f3b74da29c71ed7ad39d4</id>
  <committed-date>2009-07-01T23:40:09-07:00</committed-date>
  <authored-date>2009-07-01T23:40:09-07:00</authored-date>
  <message>Fixes in XmlKnob</message>
  <tree>be382b9f7df69e41cf902f80ab3418adfea1ca78</tree>
  <committer>
    <name>LCID Fire</name>
    <email>lcid-fire@gmx.net</email>
  </committer>
</commit>
