mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
fix
This commit is contained in:
parent
3c9c121d91
commit
63379cdfab
@ -151,13 +151,16 @@ VSearchEngine::VSearchEngine(QObject *p_parent)
|
|||||||
|
|
||||||
VSearchEngine::~VSearchEngine()
|
VSearchEngine::~VSearchEngine()
|
||||||
{
|
{
|
||||||
|
// stop()
|
||||||
for (auto const & th : m_workers) {
|
for (auto const & th : m_workers) {
|
||||||
th->stop();
|
th->stop();
|
||||||
th->quit();
|
|
||||||
th->wait();
|
|
||||||
delete th;
|
|
||||||
}
|
}
|
||||||
m_workers.clear();
|
|
||||||
|
// clear()
|
||||||
|
clearAllWorkers();
|
||||||
|
|
||||||
|
m_finishedWorkers = 0;
|
||||||
|
|
||||||
m_result.clear();
|
m_result.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user