From 498147414d3b046808fefdceca8a809c987daf30 Mon Sep 17 00:00:00 2001 From: iaom Date: Tue, 28 Feb 2023 15:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E5=88=A0=E9=99=A4=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E9=A1=B6=E5=B1=82=E7=9B=AE=E5=BD=95=E6=97=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=9B=91=E5=90=AC=E7=9B=AE=E5=BD=95=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsearch/filesystemwatcher/file-system-watcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsearch/filesystemwatcher/file-system-watcher.cpp b/libsearch/filesystemwatcher/file-system-watcher.cpp index 7bf197e..c4e4b89 100644 --- a/libsearch/filesystemwatcher/file-system-watcher.cpp +++ b/libsearch/filesystemwatcher/file-system-watcher.cpp @@ -208,12 +208,12 @@ void FileSystemWatcher::addWatchWithBlackList(const QStringList &pathList, const QStringList FileSystemWatcher::removeWatch(const QString &path) { - return d->removeWatch(path); for(QString watchedPath : d->m_watchedRootPaths) { if(FileUtils::isOrUnder(watchedPath, path)) { d->m_watchedRootPaths.removeAll(watchedPath); } } + return d->removeWatch(path); } void FileSystemWatcher::clearAll()