mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
moviebrowser: allow to delete all marked movies w/o any question
Origin commit data
------------------
Branch: ni/coolstream
Commit: ebd3cf6369
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-09-29 (Tue, 29 Sep 2015)
Origin message was:
------------------
- moviebrowser: allow to delete all marked movies w/o any question
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1832,6 +1832,7 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
|
||||
MI_MOVIE_LIST dellist;
|
||||
MI_MOVIE_LIST::iterator dellist_it;
|
||||
dellist.clear();
|
||||
unsigned int dellist_cnt = 0;
|
||||
bool skipAsk = false;
|
||||
for (filelist_it = filelist.begin(); filelist_it != filelist.end(); ++filelist_it)
|
||||
{
|
||||
@@ -1862,10 +1863,15 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
|
||||
}
|
||||
}
|
||||
if (onDelete)
|
||||
{
|
||||
dellist.push_back(*movieinfo);
|
||||
dellist_cnt++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!dellist.empty()) {
|
||||
if (dellist_cnt > 1)
|
||||
skipAsk = (ShowMsg(LOCALE_FILEBROWSER_DELETE, LOCALE_MOVIEBROWSER_DELETE_ALL, CMessageBox::mbrNo, CMessageBox:: mbYes | CMessageBox::mbNo) == CMessageBox::mbrYes);
|
||||
for (dellist_it = dellist.begin(); dellist_it != dellist.end(); ++dellist_it)
|
||||
onDeleteFile((MI_MOVIE_INFO *)&(*dellist_it), skipAsk);
|
||||
dellist.clear();
|
||||
|
Reference in New Issue
Block a user