shared: ParallelDirScanner: Delete DirScanWorkers after they are done
This commit is contained in:
parent
5d702c9a95
commit
05fad3be17
@ -50,6 +50,7 @@ void ParallelDirScanner::handleWorkersFinish()
|
|||||||
running = false;
|
running = false;
|
||||||
emit scanComplete();
|
emit scanComplete();
|
||||||
}
|
}
|
||||||
|
delete QObject::sender();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int ParallelDirScanner::getThreadsNum() const
|
unsigned int ParallelDirScanner::getThreadsNum() const
|
||||||
|
@ -41,6 +41,7 @@ class ParallelDirScanner : public QObject
|
|||||||
void progress(int, int);
|
void progress(int, int);
|
||||||
public slots:
|
public slots:
|
||||||
void cancel();
|
void cancel();
|
||||||
|
private slots:
|
||||||
void handleWorkersProgress(unsigned int progress);
|
void handleWorkersProgress(unsigned int progress);
|
||||||
void handleWorkersFinish();
|
void handleWorkersFinish();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user