diff --git a/components/files/multidircollection.cpp b/components/files/multidircollection.cpp index 0543312e0..4428b364e 100644 --- a/components/files/multidircollection.cpp +++ b/components/files/multidircollection.cpp @@ -41,9 +41,9 @@ namespace Files MultiDirCollection::MultiDirCollection (const std::vector& directories, const std::string& extension, bool foldCase) - : mFiles (NameLess (foldCase)) + : mFiles (NameLess (!foldCase)) { - NameEqual equal (foldCase); + NameEqual equal (!foldCase); for (std::vector::const_iterator iter = directories.begin(); iter!=directories.end(); ++iter) diff --git a/components/files/multidircollection.hpp b/components/files/multidircollection.hpp index 36270dfd1..bd0304e40 100644 --- a/components/files/multidircollection.hpp +++ b/components/files/multidircollection.hpp @@ -27,7 +27,9 @@ namespace Files char l = std::tolower (left[i]); char r = std::tolower (right[i]); - if (l>=r) + if (lr) return false; }