Theme Editor: Fixed a bug that prevented ID3 info tags from working correctly in conditionals

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27792 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-08-12 18:40:35 +00:00
parent 71610fbf62
commit f055ceeac6

View file

@ -1007,13 +1007,6 @@ QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional,
else
child = 1;
}
else if(val.type() == QVariant::String)
{
if(val.toString().length() > 0)
child = 0;
else
child = 1;
}
else if(element->tag->name[0] == 'i' || element->tag->name[0] == 'I'
|| element->tag->name[0] == 'f' || element->tag->name[0] == 'F')
{
@ -1022,6 +1015,13 @@ QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional,
else
child = 1;
}
else if(val.type() == QVariant::String)
{
if(val.toString().length() > 0)
child = 0;
else
child = 1;
}
else
{
child = val.toInt();