Bug #1224
openDisabling Option ShowSubtible does lead to no display of EPG data
0%
Description
After turning off the subtitles option, I could only read "Waiting for EPG info." after switching to a new TV Channel.
I looked into the code and in lcd.c around line #866 the code is:
if ( (LcdSetup.ShowSubtitle) && (!isempty(PresentTitle)) && (!isempty(PresentSubtitle)) )
SetRunning(false,Present->GetTimeString(),PresentTitle,PresentSubtitle);
else if ( (LcdSetup.ShowSubtitle) && !isempty(PresentTitle)) SetRunning(false,Present->GetTimeString(),PresentTitle);
In plain words:
When the option ShowSubtitle is set and there is a title and a subtitle then show both.
When the option Showsubtitle is set and there is a title but no subtitle then show only title.
So in my opinion the code should look like this: if ( (LcdSetup.ShowSubtitle) && (!isempty(PresentTitle)) && (!isempty(PresentSubtitle)) )
SetRunning(false,Present->GetTimeString(),PresentTitle,PresentSubtitle);
else if ( !isempty(PresentTitle) ) SetRunning(false,Present->GetTimeString(),PresentTitle);
I have tested it on my system and it works.