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

Origin commit data
------------------
Commit: 3e053e7728
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-20 (Tue, 20 Jun 2017)

Origin message was:
------------------
- moviebrowser: fix deletion of cursor_only movie via "menu" -> "yellow"
This commit is contained in:
vanhofen
2017-06-20 22:13:49 +02:00
parent 49b94a015d
commit 37e730f7a8

View File

@@ -2583,13 +2583,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;