summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-09-15 16:44:08 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-09-23 11:11:11 +0000
commit1d9dd67fd39d1a32118935685a811f04a8ac1ce4 (patch)
tree02dc46a3d67670bd49a74a09085c2d955ac1d50a
parent972731d42eabd25eae2c5fd027a8f1178c7f909c (diff)
downloadqt-creator-1d9dd67fd39d1a32118935685a811f04a8ac1ce4.tar.gz
Clang: Do not re-add files after QFileSystemWatcher::fileChanged()
It is pointless and will generate error messages like clangbackend.stderr: QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory for renamed or removed files. Change-Id: I3ea14cc5f38526960d52ae7b41a270ef620a929c Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
-rw-r--r--src/tools/clangbackend/ipcsource/clangfilesystemwatcher.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.cpp b/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.cpp
index 0d93268d52..371bae062f 100644
--- a/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.cpp
+++ b/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.cpp
@@ -69,7 +69,6 @@ void ClangFileSystemWatcher::addFiles(const QSet<Utf8String> &filePaths)
void ClangFileSystemWatcher::updateTranslationUnitsWithChangedDependencies(const QString &filePath)
{
translationUnits.updateTranslationUnitsWithChangedDependency(filePath);
- watcher.addPath(filePath);
emit fileChanged();
}