mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
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:
@@ -663,6 +663,8 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
|||||||
if(hasItem() && selected > -1 && (int)items.size() > selected) {
|
if(hasItem() && selected > -1 && (int)items.size() > selected) {
|
||||||
//exec this item...
|
//exec this item...
|
||||||
CMenuItem* item = items[selected];
|
CMenuItem* item = items[selected];
|
||||||
|
if (!item->isSelectable())
|
||||||
|
break;
|
||||||
item->msg = msg;
|
item->msg = msg;
|
||||||
fader.Stop();
|
fader.Stop();
|
||||||
int rv = item->exec( this );
|
int rv = item->exec( this );
|
||||||
|
Reference in New Issue
Block a user