From 2e6fcdcd28d91a58ac689b2521c540e3bd730a8e Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 9 Jan 2013 16:19:08 +0400 Subject: [PATCH] gui/widget/menue.cpp: dont allow to exec non-active item - in case old, selected, was disabled Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/e178488bf405cce6a5e59250ab28ae83e6417a04 Author: [CST] Focus Date: 2013-01-09 (Wed, 09 Jan 2013) ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 66b252d8b..1837981ff 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -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 );