Compare commits

..

2 Commits

2 changed files with 6 additions and 1 deletions

View File

@ -120,7 +120,7 @@ void Indexer::dirScanProgress(int current, int total)
void Indexer::processFileScanResult(FileScanResult result) void Indexer::processFileScanResult(FileScanResult result)
{ {
if(result.second != OK || result.second != OK_WASEMPTY || result.second != SKIPPED) if(isErrorSaveFileResult(result.second))
{ {
this->currentIndexResult.results.append(result); this->currentIndexResult.results.append(result);
if(!keepGoing) if(!keepGoing)

View File

@ -30,4 +30,9 @@ static inline QString SaveFileResultToString(SaveFileResult sfr)
return SaveFileResultStr[(int)sfr]; return SaveFileResultStr[(int)sfr];
} }
static inline bool isErrorSaveFileResult(SaveFileResult result)
{
return result == DBFAIL || result == PROCESSFAIL || result == NOTFOUND || result == NOACCESS;
}
#endif // SAVEFILERESULT_H #endif // SAVEFILERESULT_H