mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
gui/widget/menue.cpp: fix selected in case saved one do not match new menu size
Origin commit data
------------------
Commit: 4a1ac9b55c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-04-14 (Mon, 14 Apr 2014)
This commit is contained in:
@@ -512,6 +512,9 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
int pos = 0;
|
||||
if (selected > 0 && selected < (int)items.size())
|
||||
pos = selected;
|
||||
else if (selected >= (int)items.size())
|
||||
selected = -1;
|
||||
|
||||
exit_pressed = false;
|
||||
|
||||
frameBuffer->Lock();
|
||||
|
Reference in New Issue
Block a user