summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2012-02-17 17:09:54 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2012-02-17 18:47:12 (GMT)
commit9743d9c6af8a6a519c7a4d98fb434e3fa45ebe76 (patch)
tree4b90af7307a3927b0dc6ef306d702220a70b3f39
parent074fb6e3a2795b6756d17a818ddf0aa9f258dc33 (diff)
Fix reccount value for the Default group
(cherry picked from commit 4588c0e51d206127525954d1368af40d53a17083)
-rw-r--r--mythtv/programs/mythfrontend/playbackbox.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/mythtv/programs/mythfrontend/playbackbox.cpp b/mythtv/programs/mythfrontend/playbackbox.cpp
index 4834689..f77d0aa 100644
--- a/mythtv/programs/mythfrontend/playbackbox.cpp
+++ b/mythtv/programs/mythfrontend/playbackbox.cpp
@@ -1193,11 +1193,12 @@ void PlaybackBox::UpdateUIGroupList(const QStringList &groupPreferences)
m_currentGroup = groupname.toLower();
}
- if (groupname.isEmpty())
- groupname = m_groupDisplayName;
+ QString displayName = groupname;
+ if (displayName.isEmpty())
+ displayName = m_groupDisplayName;
- item->SetText(groupname, "name");
- item->SetText(groupname);
+ item->SetText(displayName, "name");
+ item->SetText(displayName);
int count = m_progLists[groupname.toLower()].size();
item->SetText(QString::number(count), "reccount");