diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2009-03-30 21:54:20 +0200 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2009-03-30 21:54:20 +0200 |
commit | 6e1e43b735004cd0501f4a92fd7db5d3d8790c55 (patch) | |
tree | e283a4c425ad62e068eb7e849a0ed5777d66dfd9 | |
parent | d174377e96c8140cf367540305f76ec1ba56bf86 (diff) | |
download | vdr-plugin-ttxtsubs-6e1e43b735004cd0501f4a92fd7db5d3d8790c55.tar.gz vdr-plugin-ttxtsubs-6e1e43b735004cd0501f4a92fd7db5d3d8790c55.tar.bz2 |
Don't show page selection menu, when there is no current channel (Closes #111)
-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; } |