Fix the file search by filename key

This commit is contained in:
Jean Pierre Cimalando 2020-12-09 17:06:05 +01:00
parent ccdba9d6c7
commit a848d8e94e

View file

@ -31,7 +31,7 @@ bool SfzFileScan::locateRealFile(const fs::path& pathOrig, fs::path& pathFound)
std::unique_lock<std::mutex> lock { mutex };
refreshScan();
auto it = file_index_.find(keyOf(pathOrig));
auto it = file_index_.find(keyOf(pathOrig.filename()));
if (it == file_index_.end())
return false;