gui/widget/menue.cpp: dont allow to exec non-active item -

in case old, selected, was disabled


Origin commit data
------------------
Branch: ni/coolstream
Commit: e178488bf4
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-01-09 (Wed, 09 Jan 2013)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-01-09 16:19:08 +04:00
parent 84dc8e7890
commit 2e6fcdcd28

View File

@@ -663,6 +663,8 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
if(hasItem() && selected > -1 && (int)items.size() > selected) {
//exec this item...
CMenuItem* item = items[selected];
if (!item->isSelectable())
break;
item->msg = msg;
fader.Stop();
int rv = item->exec( this );