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:
[CST] Focus
2014-04-14 13:26:01 +04:00
parent 409c1ae691
commit 065f302da0

View File

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