summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--ttxtsubs.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index dad2903..5daaa9b 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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
diff --git a/ttxtsubs.c b/ttxtsubs.c
index 1912416..4dd5b2b 100644
--- a/ttxtsubs.c
+++ b/ttxtsubs.c
@@ -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;
}