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 | |
parent | f055ceeac61b1d566ae6b648cef5475ddd65e15f (diff) | |
download | rockbox-f4c06f3434e2ff0dd642fcc2372b199d7012dd47.tar.gz 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
-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 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, | |||
935 | { | 935 | { |
936 | if(!conditional) | 936 | if(!conditional) |
937 | { | 937 | { |
938 | if(element->tag->name[0] == 'c' && !info.device()->data("cc").toBool()) | ||
939 | return QString(); | ||
940 | |||
938 | if(QString(element->tag->name) == "Sx") | 941 | if(QString(element->tag->name) == "Sx") |
939 | return element->params[0].data.text; | 942 | return element->params[0].data.text; |
940 | return info.device()->data(QString(element->tag->name), | 943 | return info.device()->data(QString(element->tag->name), |