gui/moviebrowser.cpp: allow to delete any file + xml

Origin commit data
------------------
Branch: ni/coolstream
Commit: 50a90906a0
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-11-05 (Wed, 05 Nov 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2014-11-05 11:48:56 +03:00
parent eee930fb00
commit fc4b8cc81c

View File

@@ -2031,14 +2031,14 @@ bool CMovieBrowser::onButtonPressMovieInfoList(neutrino_msg_t msg)
void CMovieBrowser::onDeleteFile(MI_MOVIE_INFO& movieSelectionHandler, bool skipAsk)
{
//TRACE("[onDeleteFile] ");
#if 0
int test= movieSelectionHandler.file.Name.find(".ts", movieSelectionHandler.file.Name.length()-3);
if (test == -1)
{
if (test == -1) {
// not a TS file, return!!!!!
TRACE("show_ts_info: not a TS file ");
return;
}
else
{
#endif
std::string msg = g_Locale->getText(LOCALE_FILEBROWSER_DODELETE1);
msg += "\n ";
if (movieSelectionHandler.file.Name.length() > 40)
@@ -2079,7 +2079,6 @@ void CMovieBrowser::onDeleteFile(MI_MOVIE_INFO& movieSelectionHandler, bool skip
refresh();
}
}
}
void CMovieBrowser::onSetGUIWindow(MB_GUI gui)
{