- moviebrowser: fix deletion of cursor_only movie via "menu" -> "yellow"

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-06-21 10:31:22 +02:00
committed by Thilo Graf
parent 57ff49c321
commit 8b4f34857f

View File

@@ -2479,13 +2479,20 @@ bool CMovieBrowser::onDelete(bool cursor_only)
MI_MOVIE_INFO *movieinfo;
movieinfo = NULL;
filelist_it = filelist.end();
if (!cursor_only && getSelectedFiles(filelist, movielist))
filelist_it = filelist.begin();
if (filelist.empty()) { //just add the m_movieSelectionHandler
if (cursor_only)
{
filelist.clear();
movielist.clear();
// just add the m_movieSelectionHandler
filelist.push_back(m_movieSelectionHandler->file);
movielist.push_back(m_movieSelectionHandler);
}
else
{
getSelectedFiles(filelist, movielist);
}
MI_MOVIE_LIST dellist;
MI_MOVIE_LIST::iterator dellist_it;