Changes to progress bars

This commit is contained in:
ffsup2
2011-03-17 17:18:13 +01:00
parent 538bcc601b
commit 910bcc688c
23 changed files with 255 additions and 293 deletions

View File

@@ -31,7 +31,7 @@
extern Options options;
FileBrowser::FileBrowser ()
: tbl(NULL) {
: tbl(NULL),numFiltered(0) {
fbih = new FileBrowserIdleHelper;
fbih->fbrowser = this;
@@ -568,8 +568,11 @@ void FileBrowser::applyFilter (const BrowserFilter& filter) {
// remove items not complying the filter from the selection
bool selchanged = false;
for (int i=0; i<fd.size(); i++)
if (fd[i]->selected && !checkFilter (fd[i])) {
numFiltered=0;
for (int i=0; i<fd.size(); i++)
if(checkFilter (fd[i]))
numFiltered++;
else if (fd[i]->selected ) {
fd[i]->selected = false;
std::vector<ThumbBrowserEntryBase*>::iterator j = std::find (selected.begin(), selected.end(), fd[i]);
selected.erase (j);