fix select in usermenu

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1200 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 2989938f0e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-02-25 (Fri, 25 Feb 2011)

Origin message was:
------------------
-fix select in usermenu

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1200 e54a6e83-5905-42d5-8d5c-058d10e6a962


------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2011-02-25 07:01:52 +00:00
parent e4868d6fea
commit be238209f3

View File

@@ -1266,6 +1266,7 @@ bool CNeutrinoApp::showUserMenu(int button)
CMenuWidget *menu = new CMenuWidget(txt.c_str() , NEUTRINO_ICON_FEATURES);
if (menu == NULL)
return 0;
menu->setSelected(selected[button]);
menu->addItem(GenericMenuSeparator);
// go through any postition number
@@ -1514,7 +1515,6 @@ bool CNeutrinoApp::showUserMenu(int button)
// show menu if there are more than 2 items only
// otherwise, we start the item directly (must be the last one)
if (menu_items > 1 ) {
menu->setSelected(selected[button]);
menu->exec(NULL,"");
selected[button] = menu->getSelected();
}