fix select bookmark menu

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


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

Origin message was:
------------------
-fix select bookmark menu

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


------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2011-02-11 05:48:59 +00:00
parent f99b0b7587
commit e11a452f69

View File

@@ -3048,7 +3048,6 @@ int CMovieBrowser::showStartPosSelectionMenu(void) // P2
startPosSelectionMenu.enableFade(false); startPosSelectionMenu.enableFade(false);
startPosSelectionMenu.addIntroItems(); startPosSelectionMenu.addIntroItems();
//startPosSelectionMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_START_RECORD_START, true,NULL)); //startPosSelectionMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_START_RECORD_START, true,NULL));
//position[menu_nr++] = 0; //position[menu_nr++] = 0;
if(m_movieSelectionHandler->bookmarks.start != 0) if(m_movieSelectionHandler->bookmarks.start != 0)
@@ -3088,12 +3087,12 @@ TRACE("[mb] adding boomark menu N %d, position %d\n", menu_nr, position[menu_nr]
//result = startPosSelectionMenu.getSelected(); //result = startPosSelectionMenu.getSelected();
result = startPosSelectionMenu.getSelectedLine(); result = startPosSelectionMenu.getSelectedLine();
printf("startPosSelectionMenu result %d\n", result); printf("startPosSelectionMenu result %d\n", result);
if(result < 0) if(result < 2)// select 2 for startPosSelectionMenu.addIntroItems();
return -1; return -1;
//TRACE("[mb] selected bookmark %d\n", result); //TRACE("[mb] selected bookmark %d\n", result);
if(result != 0 && result <= MAX_NUMBER_OF_BOOKMARK_ITEMS) if(result != 0 && result <= MAX_NUMBER_OF_BOOKMARK_ITEMS)
{ {
result--; result-=3;// select -2 for startPosSelectionMenu.addIntroItems();
if(result > sep_pos) result--; if(result > sep_pos) result--;
pos = position[result]; pos = position[result];
} }