Compare commits
2 Commits
5f19328679
...
cc9dae37e5
Author | SHA1 | Date | |
---|---|---|---|
cc9dae37e5 | |||
64a9638d1e |
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user