summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Engel <dengel@mythtv.org>2011-06-25 21:09:42 (GMT)
committer David Engel <dengel@mythtv.org>2011-06-25 21:09:42 (GMT)
commitc80795e01dc9fc70451a225fca533bf8eb717f1f (patch)
treec4d8f11dc0a69ebaed68730a75feda9ed5d595a1
parent4444dc5960f0320769ca618690bf4ae4a78c91e1 (diff)
Work-around to handle display of high-numbered cards.
If a card's number was greater than 9, only the first digit was displayed in some situations and caused confusion with some users. In these cases, now display "#" instead. This is a work-around to avoid an ABI change in fixes/0.24 as was done in the complete fix in SHA:95b4d928 in master.
-rw-r--r--mythtv/libs/libmyth/programtypes.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/mythtv/libs/libmyth/programtypes.cpp b/mythtv/libs/libmyth/programtypes.cpp
index 019655c..0fbb6d1 100644
--- a/mythtv/libs/libmyth/programtypes.cpp
+++ b/mythtv/libs/libmyth/programtypes.cpp
@@ -89,7 +89,10 @@ QChar toQChar(RecStatusType recstatus, uint cardid)
ret = QObject::tr("t", "RecStatusChar rsTuning");
break;
case rsWillRecord:
- ret = QString::number(cardid);
+ if (0 < cardid && cardid < 10)
+ ret = QString::number(cardid);
+ else
+ ret = "#";
break;
case rsDontRecord:
ret = QObject::tr("X", "RecStatusChar rsDontRecord");