Commit 21798a49 authored by dt_'s avatar dt_
Browse files

Readd filewatches to QFileSystemWatcher

That is needed since after a delete/replace we otherwise stop watching.
parent cae5bef0
......@@ -265,11 +265,15 @@ void FileManager::addFileInfo(const QString &fileName, IFile *file, bool isLink)
if (!d->m_states.contains(fileName)) {
d->m_states.insert(fileName, Internal::FileState());
QFileSystemWatcher *watcher = 0;
if (isLink)
watcher = d->linkWatcher();
watcher = d->fileWatcher();
if (!watcher->files().contains(fileName))
d->m_states[fileName].lastUpdatedState.insert(file, state);
d->m_filesWithWatch[file].append(fileName); // inserts a new QStringList if not already there
Markdown is supported
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