diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-07-06 11:27:34 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-07-06 11:04:16 +0000 |
commit | 29c7bcdf7e12f9cdbce673e61bf44acbca0cb0a5 (patch) | |
tree | c23d3369ce89c8b7e00f7f0ad724944d05eee833 /src/plugins/coreplugin/documentmanager.cpp | |
parent | 14ecd1855d473c5b3d9c4f15eaffd89807493b53 (diff) | |
download | qt-creator-29c7bcdf7e12f9cdbce673e61bf44acbca0cb0a5.tar.gz |
Revert "Core: Reinitialize change notification after saving"
This reverts commit 540f5677e83513135e5785890a3167959cb9a370.
For some reason the change broke reparsing of .pro files after
they are edited.
Change-Id: I61560d3d7a3ccd8aac72c80b37421ed924f2323c
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/documentmanager.cpp')
-rw-r--r-- | src/plugins/coreplugin/documentmanager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/coreplugin/documentmanager.cpp b/src/plugins/coreplugin/documentmanager.cpp index f605f33a44..74b4b650b2 100644 --- a/src/plugins/coreplugin/documentmanager.cpp +++ b/src/plugins/coreplugin/documentmanager.cpp @@ -243,9 +243,8 @@ static void addFileInfo(const QString &fileName, IDocument *document, bool isLin watcher = d->linkWatcher(); else watcher = d->fileWatcher(); - if (watcher->files().contains(fileName)) - watcher->removePath(fileName); - watcher->addPath(fileName); + if (!watcher->files().contains(fileName)) + watcher->addPath(fileName); d->m_states[fileName].lastUpdatedState.insert(document, state); } |