From f4c06f3434e2ff0dd642fcc2372b199d7012dd47 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Thu, 12 Aug 2010 18:47:05 +0000 Subject: 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 --- utils/themeeditor/models/parsetreenode.cpp | 3 +++ 1 file changed, 3 insertions(+) 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), -- cgit v1.2.3