Skip to content

Commit

Permalink
Work-around to handle display of high-numbered cards.
Browse files Browse the repository at this point in the history
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 c80795e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/libs/libmyth/programtypes.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ QChar toQChar(RecStatusType recstatus, uint cardid)
ret = QObject::tr("t", "RecStatusChar rsTuning"); ret = QObject::tr("t", "RecStatusChar rsTuning");
break; break;
case rsWillRecord: case rsWillRecord:
ret = QString::number(cardid); if (0 < cardid && cardid < 10)
ret = QString::number(cardid);
else
ret = "#";
break; break;
case rsDontRecord: case rsDontRecord:
ret = QObject::tr("X", "RecStatusChar rsDontRecord"); ret = QObject::tr("X", "RecStatusChar rsDontRecord");
Expand Down

0 comments on commit c80795e

Please sign in to comment.