summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-08-02 22:23:39 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-08-02 22:23:39 +0000
commitc8824640f2a8d4e0a9645723d8501ffbc21539d0 (patch)
tree02fe4c80799a20ca8cdf588de8e66bb2a92af8ad /utils
parentabd05669ba3366cbf03060b0d9d6681607378814 (diff)
downloadrockbox-c8824640f2a8d4e0a9645723d8501ffbc21539d0.tar.gz
rockbox-c8824640f2a8d4e0a9645723d8501ffbc21539d0.tar.bz2
rockbox-c8824640f2a8d4e0a9645723d8501ffbc21539d0.zip
Theme Editor: Fixed rendering of %ca tag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27671 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils')
-rw-r--r--utils/themeeditor/gui/devicestate.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/utils/themeeditor/gui/devicestate.cpp b/utils/themeeditor/gui/devicestate.cpp
index e766a64835..a62c6862b4 100644
--- a/utils/themeeditor/gui/devicestate.cpp
+++ b/utils/themeeditor/gui/devicestate.cpp
@@ -362,8 +362,17 @@ QVariant DeviceState::data(QString tag, int paramCount,
}
else if(tag == "ca")
{
- QString day = data("cw").toString();
- return day.left(3);
+ switch(data("cw").toInt())
+ {
+ case 0: return "Sun";
+ case 1: return "Mon";
+ case 2: return "Tue";
+ case 3: return "Wed";
+ case 4: return "Thu";
+ case 5: return "Fri";
+ case 6: return "Sat";
+ case 7: return tr("Error, invalid weekday number");
+ }
}
else if(tag == "cb")
{