diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index d26841203..75b17b78e 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -2143,9 +2143,10 @@ bool CMovieBrowser::onButtonPressMovieInfoList(neutrino_msg_t msg) return (result); } -void CMovieBrowser::onDeleteFile(MI_MOVIE_INFO *movieinfo, bool skipAsk) +bool CMovieBrowser::onDeleteFile(MI_MOVIE_INFO *movieinfo, bool skipAsk) { //TRACE("[onDeleteFile] "); + bool result = false; #if 0 int test= movieinfo->file.Name.find(".ts", movieinfo->file.Name.length()-3); if (test == -1) { @@ -2224,7 +2225,9 @@ void CMovieBrowser::onDeleteFile(MI_MOVIE_INFO *movieinfo, bool skipAsk) refreshMovieInfo(); refresh(); #endif + result = true; } + return (result); } void CMovieBrowser::onSetGUIWindow(MB_GUI gui) diff --git a/src/gui/moviebrowser.h b/src/gui/moviebrowser.h index ae9515cce..486372bb3 100644 --- a/src/gui/moviebrowser.h +++ b/src/gui/moviebrowser.h @@ -425,7 +425,7 @@ class CMovieBrowser : public CMenuTarget void onSetGUIWindow(MB_GUI gui); void onSetGUIWindowNext(void); void onSetGUIWindowPrev(void); - void onDeleteFile(MI_MOVIE_INFO *movieinfo, bool skipAsk = false); // P4 + bool onDeleteFile(MI_MOVIE_INFO *movieinfo, bool skipAsk = false); // P4 bool onSortMovieInfoHandleList(std::vector& pv_handle_list, MB_INFO_ITEM sort_type, MB_DIRECTION direction); ///// parse Storage Directories /////////////