mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +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
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:
@@ -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