comparison src/fswatcher.cpp @ 542:7829da6abe97 fswatcher

Provide all tracked files to the fs watcher, so now we get updates properly -- requires moving the "what should we display?" logic for show-all-files toggle from main window to file status widget, but it's probably better there anyway
author Chris Cannam
date Tue, 14 Feb 2012 16:48:01 +0000
parents 0a16db274f2c
children 533519ebc0cb
comparison
equal deleted inserted replaced
541:0a16db274f2c 542:7829da6abe97
80 80
81 QSet<QString> alreadyWatched = 81 QSet<QString> alreadyWatched =
82 QSet<QString>::fromList(m_watcher.files()); 82 QSet<QString>::fromList(m_watcher.files());
83 83
84 foreach (QString path, paths) { 84 foreach (QString path, paths) {
85 path = m_workDirPath + QDir::separator() + path;
85 if (!alreadyWatched.contains(path)) { 86 if (!alreadyWatched.contains(path)) {
86 m_watcher.addPath(path); 87 m_watcher.addPath(path);
87 } else { 88 } else {
88 alreadyWatched.remove(path); 89 alreadyWatched.remove(path);
89 } 90 }