mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
* Moviebrowser: Show message when deleting files
This commit is contained in:
@@ -2091,6 +2091,8 @@ void CMovieBrowser::onDeleteFile(MI_MOVIE_INFO& movieSelectionHandler, bool skip
|
||||
msg += g_Locale->getText(LOCALE_FILEBROWSER_DODELETE2);
|
||||
if ((skipAsk) || (ShowMsgUTF(LOCALE_FILEBROWSER_DELETE, msg, CMessageBox::mbrYes, CMessageBox::mbYes|CMessageBox::mbNo)==CMessageBox::mbrYes))
|
||||
{
|
||||
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_MOVIEBROWSER_DELETE_INFO));
|
||||
hintBox->paint();
|
||||
delFile(movieSelectionHandler.file);
|
||||
|
||||
#if 1
|
||||
@@ -2117,6 +2119,9 @@ void CMovieBrowser::onDeleteFile(MI_MOVIE_INFO& movieSelectionHandler, bool skip
|
||||
//delFile(file_xml);
|
||||
unlink(file_xml.Name.c_str());
|
||||
}
|
||||
hintBox->hide();
|
||||
delete hintBox;
|
||||
g_RCInput->clearRCMsg();
|
||||
|
||||
m_vMovieInfo.erase( (std::vector<MI_MOVIE_INFO>::iterator)&movieSelectionHandler);
|
||||
TRACE("List size: %d\n", m_vMovieInfo.size());
|
||||
|
@@ -1216,6 +1216,7 @@ typedef enum
|
||||
LOCALE_MOVIEBROWSER_BROWSER_ROW_ITEM,
|
||||
LOCALE_MOVIEBROWSER_BROWSER_ROW_NR,
|
||||
LOCALE_MOVIEBROWSER_BROWSER_ROW_WIDTH,
|
||||
LOCALE_MOVIEBROWSER_DELETE_INFO,
|
||||
LOCALE_MOVIEBROWSER_DIR,
|
||||
LOCALE_MOVIEBROWSER_DIR_HEAD,
|
||||
LOCALE_MOVIEBROWSER_EDIT_BOOK,
|
||||
|
@@ -1216,6 +1216,7 @@ const char * locale_real_names[] =
|
||||
"moviebrowser.browser_row_item",
|
||||
"moviebrowser.browser_row_nr",
|
||||
"moviebrowser.browser_row_width",
|
||||
"moviebrowser.delete_info",
|
||||
"moviebrowser.dir",
|
||||
"moviebrowser.dir_head",
|
||||
"moviebrowser.edit_book",
|
||||
|
Reference in New Issue
Block a user