diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-08-12 18:47:05 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-08-12 18:47:05 +0000 |
| commit | f4c06f3434e2ff0dd642fcc2372b199d7012dd47 (patch) | |
| tree | 1c1778ce9613557584f459094a43f503f4987f93 /utils/themeeditor | |
| parent | f055ceeac61b1d566ae6b648cef5475ddd65e15f (diff) | |
| download | rockbox-f4c06f3434e2ff0dd642fcc2372b199d7012dd47.zip rockbox-f4c06f3434e2ff0dd642fcc2372b199d7012dd47.tar.gz rockbox-f4c06f3434e2ff0dd642fcc2372b199d7012dd47.tar.bz2 rockbox-f4c06f3434e2ff0dd642fcc2372b199d7012dd47.tar.xz | |
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.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp index c7df4a4..0888bc4 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), |