RsFiles::alreadyHaveFile look into extra list too

This commit is contained in:
Gioacchino Mazzurco 2020-05-29 11:03:57 +02:00
parent 968f234bfd
commit 43f7b6c0ba
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
2 changed files with 10 additions and 3 deletions

View file

@ -1424,9 +1424,15 @@ int p3FileDatabase::SearchBoolExp(RsRegularExpression::Expression *exp, std::lis
return !results.empty() ;
}
bool p3FileDatabase::search(const RsFileHash &hash, FileSearchFlags hintflags, FileInfo &info) const
bool p3FileDatabase::search(
const RsFileHash &hash, FileSearchFlags hintflags, FileInfo &info) const
{
RS_STACK_MUTEX(mFLSMtx) ;
RS_STACK_MUTEX(mFLSMtx);
if( (hintflags & RS_FILE_HINTS_EXTRA) &&
mExtraFiles->search(hash, hintflags, info) )
return true;
if(hintflags & RS_FILE_HINTS_LOCAL)
{