From 6e1e43b735004cd0501f4a92fd7db5d3d8790c55 Mon Sep 17 00:00:00 2001 From: Tobias Grimm Date: Mon, 30 Mar 2009 21:54:20 +0200 Subject: Don't show page selection menu, when there is no current channel (Closes #111) --- HISTORY | 1 + ttxtsubs.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3