summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-08-12 18:47:05 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-08-12 18:47:05 +0000
commitf4c06f3434e2ff0dd642fcc2372b199d7012dd47 (patch)
tree1c1778ce9613557584f459094a43f503f4987f93 /utils/themeeditor
parentf055ceeac61b1d566ae6b648cef5475ddd65e15f (diff)
downloadrockbox-f4c06f3434e2ff0dd642fcc2372b199d7012dd47.tar.gz
rockbox-f4c06f3434e2ff0dd642fcc2372b199d7012dd47.tar.bz2
rockbox-f4c06f3434e2ff0dd642fcc2372b199d7012dd47.zip
Theme Editor: RTC tags will now display nothing if RTC is not available on device
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27793 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index c7df4a4edb..0888bc47e9 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -935,6 +935,9 @@ QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional,
{
if(!conditional)
{
+ if(element->tag->name[0] == 'c' && !info.device()->data("cc").toBool())
+ return QString();
+
if(QString(element->tag->name) == "Sx")
return element->params[0].data.text;
return info.device()->data(QString(element->tag->name),