Revert "Core: Reinitialize change notification after saving"

This reverts commit 540f5677e8.
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>
This commit is contained in:
Eike Ziller
2015-07-06 11:27:34 +02:00
parent 14ecd1855d
commit 29c7bcdf7e

View File

@@ -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);
}