diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | ttxtsubs.c | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -5,6 +5,7 @@ VDR Plugin 'ttxtsubs' Revision History - Updated French translation provided by Michaƫl Nival (Closes #49) - Install plug-in to lib dir with --remove-destination - Added note in README about reported problems with Digitainer II (Closes #62) +- Don't show page selection menu, when there is no current channel (Closes #111) 2009-01-04: Version 0.0.8 - Updated Italien translation provided by Diego Pierotto @@ -284,6 +284,7 @@ void cPluginTtxtsubs::Housekeeping(void) const char *cPluginTtxtsubs::MainMenuEntry(void) { + bool haveChannel = Channels.GetByNumber(cDevice::ActualDevice()->CurrentChannel()) != NULL; switch(globals.mMainMenuEntry) { case 1: if(globals.mRealDoDisplay) @@ -296,7 +297,7 @@ const char *cPluginTtxtsubs::MainMenuEntry(void) else return tr("Position Teletext Subtitles for Letterbox"); case 3: - return tr("Page Selection"); + if (haveChannel) return tr("Page Selection"); default: return NULL; } |