shared: Indexer: Adjust for OK_WASEMPTY
This commit is contained in:
부모
b8006bde7b
커밋
a561032668
@ -120,8 +120,7 @@ void Indexer::dirScanProgress(int current, int total)
|
|||||||
|
|
||||||
void Indexer::processFileScanResult(FileScanResult result)
|
void Indexer::processFileScanResult(FileScanResult result)
|
||||||
{
|
{
|
||||||
if(result.second == DBFAIL || result.second == PROCESSFAIL || result.second == NOTFOUND ||
|
if(result.second != OK || result.second != OK_WASEMPTY || result.second != SKIPPED)
|
||||||
result.second == NOACCESS)
|
|
||||||
{
|
{
|
||||||
this->currentIndexResult.results.append(result);
|
this->currentIndexResult.results.append(result);
|
||||||
if(!keepGoing)
|
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;
|
++this->currentIndexResult.addedPaths;
|
||||||
}
|
}
|
||||||
|
불러오는 중...
Reference in New Issue
Block a user