shared: Indexer: Adjust for OK_WASEMPTY

This commit is contained in:
Albert S. 2022-06-24 17:48:38 +02:00
부모 b8006bde7b
커밋 a561032668
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@ -120,8 +120,7 @@ void Indexer::dirScanProgress(int current, int total)
void Indexer::processFileScanResult(FileScanResult result)
{
if(result.second == DBFAIL || result.second == PROCESSFAIL || result.second == NOTFOUND ||
result.second == NOACCESS)
if(result.second != OK || result.second != OK_WASEMPTY || result.second != SKIPPED)
{
this->currentIndexResult.results.append(result);
if(!keepGoing)
@ -139,7 +138,8 @@ void Indexer::processFileScanResult(FileScanResult result)
}
}
if(result.second == OK)
/* TODO: OK_WASEMPTY might need a special list */
if(result.second == OK || result.second == OK_WASEMPTY)
{
++this->currentIndexResult.addedPaths;
}