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