Skip to content

Commit

Permalink
Revert "fix: dde-file-manager crash"
Browse files Browse the repository at this point in the history
This reverts commit 8db8969.
  • Loading branch information
itsXuSt authored and deepin-bot[bot] committed Jun 21, 2024
1 parent f619e60 commit 30b5c8a
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,26 +176,15 @@ RecentManager::RecentManager(QObject *parent)

RecentManager::~RecentManager()
{
if (watcher) {
watcher->disconnect(this);
if (watcher)
watcher->stopWatcher();
}
iteratorWorker->stop();
workerThread.quit();
workerThread.wait(15000);
}

void RecentManager::init()
{
connect(qApp, &QApplication::aboutToQuit, this, [this](){
if (watcher) {
watcher->disconnect(this);
watcher->stopWatcher();
}
iteratorWorker->stop();
workerThread.quit();
workerThread.wait(150);
});
iteratorWorker->moveToThread(&workerThread);
connect(&workerThread, &QThread::finished, iteratorWorker, &QObject::deleteLater);
connect(this, &RecentManager::asyncHandleFileChanged,
Expand Down

0 comments on commit 30b5c8a

Please sign in to comment.