summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Grimm <tobias@e-tobi.loc>2009-03-30 21:54:20 +0200
committerTobias Grimm <tobias@e-tobi.loc>2009-03-30 21:54:20 +0200
commit6e1e43b735004cd0501f4a92fd7db5d3d8790c55 (patch)
treee283a4c425ad62e068eb7e849a0ed5777d66dfd9
parentd174377e96c8140cf367540305f76ec1ba56bf86 (diff)
downloadvdr-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--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;
}