mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- moviebrowser: another fix for deletion function ...
and add some temporary console output to see what happens Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1252,8 +1252,8 @@ bool CMovieBrowser::getSelectedFiles(CFileList &flist, P_MI_MOVIE_LIST &mlist)
|
|||||||
{
|
{
|
||||||
flist.clear();
|
flist.clear();
|
||||||
mlist.clear();
|
mlist.clear();
|
||||||
P_MI_MOVIE_LIST *handle_list = &m_vHandleBrowserList;
|
|
||||||
|
|
||||||
|
P_MI_MOVIE_LIST *handle_list = &m_vHandleBrowserList;
|
||||||
if (m_windowFocus == MB_FOCUS_LAST_PLAY)
|
if (m_windowFocus == MB_FOCUS_LAST_PLAY)
|
||||||
handle_list = &m_vHandlePlayList;
|
handle_list = &m_vHandlePlayList;
|
||||||
if (m_windowFocus == MB_FOCUS_LAST_RECORD)
|
if (m_windowFocus == MB_FOCUS_LAST_RECORD)
|
||||||
@@ -2480,18 +2480,26 @@ bool CMovieBrowser::onDelete(bool cursor_only)
|
|||||||
MI_MOVIE_INFO *movieinfo;
|
MI_MOVIE_INFO *movieinfo;
|
||||||
movieinfo = NULL;
|
movieinfo = NULL;
|
||||||
|
|
||||||
|
getSelectedFiles(filelist, movielist);
|
||||||
|
|
||||||
|
printf("CMovieBrowser::onDelete(%s) filelist size: %d\n", cursor_only ? "true" : "false", filelist.size());
|
||||||
|
printf("CMovieBrowser::onDelete(%s) movielist size: %d\n", cursor_only ? "true" : "false", movielist.size());
|
||||||
|
|
||||||
if (cursor_only || (filelist.empty() || movielist.empty()))
|
if (cursor_only || (filelist.empty() || movielist.empty()))
|
||||||
{
|
{
|
||||||
|
printf("CMovieBrowser::onDelete(%s) clearing the lists\n", cursor_only ? "true" : "false");
|
||||||
|
|
||||||
filelist.clear();
|
filelist.clear();
|
||||||
movielist.clear();
|
movielist.clear();
|
||||||
|
|
||||||
|
printf("CMovieBrowser::onDelete(%s) add the m_movieSelectionHandler\n", cursor_only ? "true" : "false");
|
||||||
|
|
||||||
// just add the m_movieSelectionHandler
|
// 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
|
printf("CMovieBrowser::onDelete(%s) filelist size: %d\n", cursor_only ? "true" : "false", filelist.size());
|
||||||
{
|
printf("CMovieBrowser::onDelete(%s) movielist size: %d\n", cursor_only ? "true" : "false", movielist.size());
|
||||||
getSelectedFiles(filelist, movielist);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MI_MOVIE_LIST dellist;
|
MI_MOVIE_LIST dellist;
|
||||||
|
Reference in New Issue
Block a user