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:
parent
71610fbf62
commit
f055ceeac6
1 changed files with 7 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue