shared: ParallelDirScanner: Delete DirScanWorkers after they are done

This commit is contained in:
Albert S. 2022-06-02 15:54:57 +02:00
parent 5d702c9a95
commit 05fad3be17
2 ha cambiato i file con 2 aggiunte e 0 eliminazioni

Vedi File

@ -50,6 +50,7 @@ void ParallelDirScanner::handleWorkersFinish()
running = false;
emit scanComplete();
}
delete QObject::sender();
}
unsigned int ParallelDirScanner::getThreadsNum() const

Vedi File

@ -41,6 +41,7 @@ class ParallelDirScanner : public QObject
void progress(int, int);
public slots:
void cancel();
private slots:
void handleWorkersProgress(unsigned int progress);
void handleWorkersFinish();
};