forked from qt-creator/qt-creator
Core: Reinitialize change notification after saving
When saving a version controlled file, a new version might be created. Therefore, ensure that the current file version is being monitored. Change-Id: Icad41bc5a443561de0c0e878aa893913dc674173 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
60eacb7790
commit
540f5677e8
@@ -243,8 +243,9 @@ static void addFileInfo(const QString &fileName, IDocument *document, bool isLin
|
||||
watcher = d->linkWatcher();
|
||||
else
|
||||
watcher = d->fileWatcher();
|
||||
if (!watcher->files().contains(fileName))
|
||||
watcher->addPath(fileName);
|
||||
if (watcher->files().contains(fileName))
|
||||
watcher->removePath(fileName);
|
||||
watcher->addPath(fileName);
|
||||
|
||||
d->m_states[fileName].lastUpdatedState.insert(document, state);
|
||||
}
|
||||
|
Reference in New Issue
Block a user