mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
CMenuWidget: fix simplified up/down code
This commit is contained in:
committed by
svenhoefer
parent
c5186c82dd
commit
ecef1e8ab8
@@ -464,6 +464,8 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
|||||||
CVFD::MODES oldLcdMode = CVFD::getInstance()->getMode();
|
CVFD::MODES oldLcdMode = CVFD::getInstance()->getMode();
|
||||||
|
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
|
if (selected > 0 && selected < (int)items.size())
|
||||||
|
pos = selected;
|
||||||
exit_pressed = false;
|
exit_pressed = false;
|
||||||
|
|
||||||
frameBuffer->Lock();
|
frameBuffer->Lock();
|
||||||
|
Reference in New Issue
Block a user