Skip to content
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.

(cherry picked from commit 70ca0bf)
  • Loading branch information...
1 parent 61d36f5 commit a6727fcb10cd78c5da37d0975643f12c5095419d @stuartm stuartm committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 mythtv/programs/mythfrontend/playbackbox.cpp
View
10 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")

0 comments on commit a6727fc

Please sign in to comment.
Something went wrong with that request. Please try again.