summaryrefslogtreecommitdiff
path: root/recmenu.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-02-06 17:53:20 +0100
committerlouis <louis.braun@gmx.de>2014-02-06 17:53:20 +0100
commit85f50f735e0aeaaa08251cf5fe5ee3595102cfbf (patch)
tree47c16b618481a6c62bcc940c135528809e75c707 /recmenu.c
parent567769ee87fa203172b361ea3694f553f394b1c9 (diff)
downloadvdr-plugin-tvguide-85f50f735e0aeaaa08251cf5fe5ee3595102cfbf.tar.gz
vdr-plugin-tvguide-85f50f735e0aeaaa08251cf5fe5ee3595102cfbf.tar.bz2
fixed a bug when scrolling page up and the menu footer is active
Diffstat (limited to 'recmenu.c')
-rw-r--r--recmenu.c7
1 files changed, 7 insertions, 0 deletions
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;