From f737192ef4fe5738f7e68e4d4b337d8b501b22e4 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 21 Feb 2015 17:21:07 +0100 Subject: [PATCH] - moviebrowser: auto-choose movie-start in startup menu, when ... ... start-bookmark is set --- src/gui/moviebrowser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index c7b03fe79..11c6f2208 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -2965,10 +2965,12 @@ int CMovieBrowser::showStartPosSelectionMenu(void) // P2 startPosSelectionMenu.addIntroItems(LOCALE_MOVIEBROWSER_START_HEAD, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL); int off = startPosSelectionMenu.getItemsCount(); + bool got_start_pos = false; if (m_movieSelectionHandler->bookmarks.start != 0) { - startPosSelectionMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_BOOK_MOVIESTART, true, start_pos)); + got_start_pos = true; + startPosSelectionMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_BOOK_MOVIESTART, true, start_pos), true); position[menu_nr++] = m_movieSelectionHandler->bookmarks.start; } if (m_movieSelectionHandler->bookmarks.lastPlayStop != 0) @@ -2977,7 +2979,7 @@ int CMovieBrowser::showStartPosSelectionMenu(void) // P2 position[menu_nr++] = m_movieSelectionHandler->bookmarks.lastPlayStop; } - startPosSelectionMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_START_RECORD_START, true,NULL), true); + startPosSelectionMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_START_RECORD_START, true,NULL), got_start_pos ? false : true); position[menu_nr++] = 0; for (int i = 0; i < MI_MOVIE_BOOK_USER_MAX && menu_nr < MAX_NUMBER_OF_BOOKMARK_ITEMS; i++)