summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2012-01-30 17:23:46 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2012-01-30 18:48:20 (GMT)
commita6727fcb10cd78c5da37d0975643f12c5095419d (patch)
tree79a48065175d934e08111e1f889d2e05ecfedd67
parent61d36f5b00238dc791642ae050ea8384843dcff9 (diff)
Fix Playbackbox update issue. A failed date conversion meant that ADD events were being ignored and therefore subsquent UPDATE events were also ignored so that the only data in the program cache was stale when a ui reload was done on exiting playback.
(cherry picked from commit 70ca0bf01507068f2c56acc91c13fa866c9a56f1)
-rw-r--r--mythtv/programs/mythfrontend/playbackbox.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/mythtv/programs/mythfrontend/playbackbox.cpp b/mythtv/programs/mythfrontend/playbackbox.cpp
index 181dcee..4834689 100644
--- a/mythtv/programs/mythfrontend/playbackbox.cpp
+++ b/mythtv/programs/mythfrontend/playbackbox.cpp
@@ -689,8 +689,8 @@ void PlaybackBox::updateGroupInfo(const QString &groupname,
updateIcons();
}
-void PlaybackBox::UpdateUIListItem(
- ProgramInfo *pginfo, bool force_preview_reload)
+void PlaybackBox::UpdateUIListItem(ProgramInfo *pginfo,
+ bool force_preview_reload)
{
if (!pginfo)
return;
@@ -737,8 +737,8 @@ void PlaybackBox::SetItemIcons(MythUIButtonListItem *item, ProgramInfo* pginfo)
item->DisplayState(disp_flag_stat[i]?"yes":"no", disp_flags[i]);
}
-void PlaybackBox::UpdateUIListItem(
- MythUIButtonListItem *item, bool is_sel, bool force_preview_reload)
+void PlaybackBox::UpdateUIListItem(MythUIButtonListItem *item,
+ bool is_sel, bool force_preview_reload)
{
if (!item)
return;
@@ -3783,7 +3783,7 @@ void PlaybackBox::customEvent(QEvent *event)
if (tokens.size() >= 4)
{
chanid = tokens[2].toUInt();
- recstartts = QDateTime::fromString(tokens[3]);
+ recstartts = QDateTime::fromString(tokens[3], Qt::ISODate);
}
if ((tokens.size() >= 2) && tokens[1] == "UPDATE")