From 6d44fb3a756ca853ccd1ce98cd373616c72eebbf Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Mon, 8 Jul 2013 02:21:42 -0400 Subject: [PATCH] Use the "*" filter to match all files The empty "" filter was previously matching all the files; since a few commits it now matches the files without extensions. The new "*" filter allows again to match all files. --- src/filelister.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/filelister.cpp b/src/filelister.cpp index 08462f1..d417b6e 100644 --- a/src/filelister.cpp +++ b/src/filelister.cpp @@ -80,9 +80,6 @@ void FileLister::browse(bool clean) return; } - vector vfilter; - split(vfilter, getFilter(), ","); - string filepath, file; struct stat st; struct dirent *dptr; @@ -117,6 +114,13 @@ void FileLister::browse(bool clean) if (std::find(files.begin(), files.end(), file) != files.end()) continue; + if (filter.compare("*") == 0) { + files.push_back(file); + continue; + } + + vector vfilter; + split(vfilter, filter, ","); for (vector::iterator it = vfilter.begin(); it != vfilter.end(); ++it) { if (file.find('.') == string::npos) { if (!it->empty())