forked from openkylin/ukui-search
手动删除索引顶层目录时更新监听目录缓存
This commit is contained in:
parent
69abc4caf5
commit
3482de60df
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue