Browse files

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.
  • Loading branch information...
1 parent e7ea30d commit 70ca0bf01507068f2c56acc91c13fa866c9a56f1 @stuartm stuartm committed Jan 30, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 mythtv/programs/mythfrontend/playbackbox.cpp
View
10 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")

0 comments on commit 70ca0bf

Please sign in to comment.