Skip to content

Commit

Permalink
Fix Playbackbox update issue. A failed date conversion meant that ADD…
Browse files Browse the repository at this point in the history
… 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
stuartm committed Jan 30, 2012
1 parent 61d36f5 commit a6727fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mythtv/programs/mythfrontend/playbackbox.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit a6727fc

Please sign in to comment.