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