mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
CMenuWidget: fix simplified up/down code
This commit is contained in:
@@ -465,6 +465,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