diff --git a/components/files/multidircollection.cpp b/components/files/multidircollection.cpp index 4428b364ea..9a0d31c42f 100644 --- a/components/files/multidircollection.cpp +++ b/components/files/multidircollection.cpp @@ -55,10 +55,10 @@ namespace Files { boost::filesystem::path path = *iter; - if (!equal (extension, path.extension())) + if (!equal (extension, boost::filesystem::path (path.extension()).string())) continue; - std::string filename = path.filename(); + std::string filename = boost::filesystem::path (path.filename()).string(); TIter result = mFiles.find (filename);