[fix] settings loading of default value for CSettingPath: parent class CSettingString...
authorVoyager1 <voyager@xbmc.org>
Mon, 5 Aug 2013 19:06:23 +0000 (21:06 +0200)
committerVoyager1 <voyager@xbmc.org>
Mon, 5 Aug 2013 19:06:23 +0000 (21:06 +0200)
xbmc/settings/SettingPath.cpp

index d98b7b1..184b667 100644 (file)
@@ -59,17 +59,6 @@ bool CSettingPath::Deserialize(const TiXmlNode *node, bool update /* = false */)
     return false;
   }
     
-  // get the default value by abusing the FromString
-  // implementation to parse the default value
-  CStdString value;
-  if (XMLUtils::GetString(node, XML_ELM_DEFAULT, value) && !value.empty())
-    m_value = m_default = value;
-  else if (!update && !m_allowEmpty)
-  {
-    CLog::Log(LOGERROR, "CSettingPath: error reading the default value of \"%s\"", m_id.c_str());
-    return false;
-  }
-    
   const TiXmlNode *constraints = node->FirstChild(XML_ELM_CONSTRAINTS);
   if (constraints != NULL)
   {