summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-27 14:11:25 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-27 14:11:25 +0100
commitaebc766ee72b65a3cb5438404d236ab5afe4c472 (patch)
treec9869e5bc6d8a883960fc198d1c7698b740449ee /menu.c
parent3c8faf1b8d37a6914c914f7c8bae720552b1182f (diff)
downloadvdr-aebc766ee72b65a3cb5438404d236ab5afe4c472.tar.gz
vdr-aebc766ee72b65a3cb5438404d236ab5afe4c472.tar.bz2
Fixed a crash when pressing '0' in the "Schedule" menu on a channel that doesn't have any EPG data
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index ec49b1ce..bdd4aeb4 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.403 2006/01/22 16:06:39 kls Exp $
+ * $Id: menu.c 1.404 2006/01/27 14:04:34 kls Exp $
*/
#include "menu.h"
@@ -1352,6 +1352,8 @@ eOSState cMenuSchedule::Number(void)
Event = CurrentItem->event;
Channel = Channels.GetByChannelID(Event->ChannelID(), true);
}
+ else
+ Channel = Channels.GetByNumber(cDevice::CurrentChannel());
switch (cMenuScheduleItem::SortMode()) {
case cMenuScheduleItem::ssmAllThis: PrepareScheduleAllThis(Event, Channel); break;
case cMenuScheduleItem::ssmThisThis: PrepareScheduleThisThis(Event, Channel); break;