Theme Editor: Enabled conditional display of ID3/file info with checkbox on the device panel

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27296 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-07-05 19:12:52 +00:00
parent 71b561e3df
commit 68756cca43
2 changed files with 9 additions and 0 deletions

View file

@ -906,6 +906,14 @@ QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional,
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')
{
if(info.device()->data("id3available").toBool())
child = 0;
else
child = 1;
}
else
{
child = val.toInt();