mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
-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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user