shared: ParallelDirScanner: Delete DirScanWorkers after they are done

Tá an tiomantas seo le fáil i:
Albert S. 2022-06-02 15:54:57 +02:00
tuismitheoir 5d702c9a95
tiomantas 05fad3be17
D'athraigh 2 comhad le 2 breiseanna agus 0 scriosta

Féach ar an gComhad

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

Féach ar an gComhad

@ -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();
};