From 104229dacf0db5bbee67d234acafd06f3ff4aa6b Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 30 Mar 2019 00:26:48 +0100 Subject: [PATCH] - moviebrowser: reset selected item in MB_FOCUS_LAST_PLAY after deleting any movie Signed-off-by: Thilo Graf --- src/gui/moviebrowser/mb.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index 7b383fa0a..8da92839b 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -1019,6 +1019,8 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey) m_doRefresh = true; returnval = menu_return::RETURN_EXIT; } + if (m_windowFocus == MB_FOCUS_LAST_PLAY) + m_pcLastPlay->setSelectedLine(0); } } return returnval; @@ -2186,6 +2188,8 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg) if (m_movieSelectionHandler != NULL) { onDelete(); + if (m_windowFocus == MB_FOCUS_LAST_PLAY) + m_pcLastPlay->setSelectedLine(0); } } else if (msg == CRCInput::RC_help)