Commit 47310350 authored by dt's avatar dt
Browse files

Qt4Project: Avoid warnings from QFileSystemWatcher

Reviewed-By: Thorbjorn
parent 80f30592
......@@ -1260,7 +1260,11 @@ void CentralizedFolderWatcher::folderChanged(const QString &folder)
if (!tmp.isEmpty()) {
if (debugCFW)
qDebug()<<"found new recursive dirs"<<tmp;
m_watcher.addPaths(tmp.toList());
QSet<QString> alreadyAdded = m_watcher.directories().toSet();
tmp.subtract(alreadyAdded);
if (!tmp.isEmpty())
m_watcher.addPaths(tmp.toList());
m_recursiveWatchedFolders += tmp;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment