shared: ParallelDirScanner: Delete DirScanWorkers after they are done

Αυτή η υποβολή περιλαμβάνεται σε:
Albert S. 2022-06-02 15:54:57 +02:00
γονέας 5d702c9a95
υποβολή 05fad3be17
2 αρχεία άλλαξαν με 2 προσθήκες και 0 διαγραφές

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

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