mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
moviebrowser: fix deletion of cursor_only movie via "menu" -> "yellow"
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8b4f34857f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-21 (Wed, 21 Jun 2017)
Origin message was:
------------------
- moviebrowser: fix deletion of cursor_only movie via "menu" -> "yellow"
Signed-off-by: Thilo Graf <dbt@novatux.de>
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2479,13 +2479,20 @@ bool CMovieBrowser::onDelete(bool cursor_only)
|
|||||||
|
|
||||||
MI_MOVIE_INFO *movieinfo;
|
MI_MOVIE_INFO *movieinfo;
|
||||||
movieinfo = NULL;
|
movieinfo = NULL;
|
||||||
filelist_it = filelist.end();
|
|
||||||
if (!cursor_only && getSelectedFiles(filelist, movielist))
|
if (cursor_only)
|
||||||
filelist_it = filelist.begin();
|
{
|
||||||
if (filelist.empty()) { //just add the m_movieSelectionHandler
|
filelist.clear();
|
||||||
|
movielist.clear();
|
||||||
|
|
||||||
|
// just add the m_movieSelectionHandler
|
||||||
filelist.push_back(m_movieSelectionHandler->file);
|
filelist.push_back(m_movieSelectionHandler->file);
|
||||||
movielist.push_back(m_movieSelectionHandler);
|
movielist.push_back(m_movieSelectionHandler);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
getSelectedFiles(filelist, movielist);
|
||||||
|
}
|
||||||
|
|
||||||
MI_MOVIE_LIST dellist;
|
MI_MOVIE_LIST dellist;
|
||||||
MI_MOVIE_LIST::iterator dellist_it;
|
MI_MOVIE_LIST::iterator dellist_it;
|
||||||
|
Reference in New Issue
Block a user