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 17:26:54 (GMT)
commit70ca0bf01507068f2c56acc91c13fa866c9a56f1 (patch)
treeb20c8bb5352de9394fbead6e9344e46cebac2df0
parente7ea30dcbf7b59393258829f381dddc6426814d1 (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.
-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 d269ad6..5de3225 100644
--- a/mythtv/programs/mythfrontend/playbackbox.cpp
+++ b/mythtv/programs/mythfrontend/playbackbox.cpp
@@ -734,8 +734,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;
@@ -780,8 +780,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;
@@ -3844,7 +3844,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")