Fix display of events in channel display

When switching to a channel without EPG, the display of the current and
following program was not updated.
This commit is contained in:
kamel5 2021-05-25 17:33:13 +02:00
parent 7c47c8e225
commit 4a89d28f03
2 changed files with 5 additions and 4 deletions

View File

@ -261,9 +261,6 @@ void cViewChannel::SetEvents(const cEvent *present, const cEvent *following) {
if (veProgressBar)
veProgressBar->Set(present);
if (!present && !following)
return;
if (veEpgInfo)
veEpgInfo->Set(present, following);

View File

@ -176,6 +176,8 @@ bool cVeDcEpgInfo::Parse(bool force) {
}
void cVeDcEpgInfo::Close(void) {
current = NULL;
next = NULL;
tokenContainer->Clear();
cViewElement::Close();
}
@ -228,6 +230,7 @@ void cVeDcProgressBar::Close(void) {
currentLast = -1;
startTime = -1;
duration = -1;
tokenContainer->Clear();
cViewElement::Close();
}
@ -617,7 +620,8 @@ void cVeDcScraperContent::SetTokenContainer(void) {
void cVeDcScraperContent::Set(const cEvent *e) {
tokenContainer->Clear();
SetPosterBanner(tokenContainer, e, NULL);
if (e)
SetPosterBanner(tokenContainer, e, NULL);
SetDirty();
}