Permalink
Browse files

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.
  • Loading branch information...
gigem committed Jun 25, 2011
1 parent 4444dc5 commit c80795e01dc9fc70451a225fca533bf8eb717f1f
Showing with 4 additions and 1 deletion.
  1. +4 −1 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");

0 comments on commit c80795e

Please sign in to comment.