From 85f50f735e0aeaaa08251cf5fe5ee3595102cfbf Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 6 Feb 2014 17:53:20 +0100 Subject: [PATCH] fixed a bug when scrolling page up and the menu footer is active --- HISTORY | 1 + recmenu.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/HISTORY b/HISTORY index 980da6c..d9cdb01 100644 --- a/HISTORY +++ b/HISTORY @@ -121,3 +121,4 @@ Version 1.2.0 - changed video directory choosage behaviour: added possibility to use a fixed recording dir which also supports epgsearch variables +- fixed a bug when scrolling page up and the menu footer is active diff --git a/recmenu.c b/recmenu.c index d594f36..6dd84dc 100644 --- a/recmenu.c +++ b/recmenu.c @@ -328,6 +328,10 @@ void cRecMenu::PageUp(void) { JumpBegin(); return; } + if (footer && activeItem == footer) { + Activate(footer, menuItems.front()); + return; + } int newActive = GetActive() - numItems; if (newActive < 0) newActive = 0; @@ -365,6 +369,9 @@ void cRecMenu::PageDown(void) { cRecMenuItem *activeItem = GetActiveMenuItem(); if (!activeItem) return; + if (footer && activeItem == footer) { + return; + } if (!scrollable) { JumpEnd(); return;