forked from openkylin/ukui-search
手动删除索引顶层目录时更新监听目录缓存
This commit is contained in:
parent
e53d13c54b
commit
498147414d
|
@ -208,12 +208,12 @@ void FileSystemWatcher::addWatchWithBlackList(const QStringList &pathList, const
|
||||||
|
|
||||||
QStringList FileSystemWatcher::removeWatch(const QString &path)
|
QStringList FileSystemWatcher::removeWatch(const QString &path)
|
||||||
{
|
{
|
||||||
return d->removeWatch(path);
|
|
||||||
for(QString watchedPath : d->m_watchedRootPaths) {
|
for(QString watchedPath : d->m_watchedRootPaths) {
|
||||||
if(FileUtils::isOrUnder(watchedPath, path)) {
|
if(FileUtils::isOrUnder(watchedPath, path)) {
|
||||||
d->m_watchedRootPaths.removeAll(watchedPath);
|
d->m_watchedRootPaths.removeAll(watchedPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return d->removeWatch(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileSystemWatcher::clearAll()
|
void FileSystemWatcher::clearAll()
|
||||||
|
|
Loading…
Reference in New Issue