-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 is contained in:
satbaby
2011-02-25 07:01:52 +00:00
parent 3897490d71
commit 2989938f0e

View File

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