fixed a bug when scrolling page up and the menu footer is active

This commit is contained in:
louis 2014-02-06 17:53:20 +01:00
parent 567769ee87
commit 85f50f735e
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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;