Mercurial > hg > easyhg
diff src/mainwindow.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 | a220f99f1134 |
line wrap: on
line diff
--- a/src/mainwindow.cpp Tue Feb 14 16:17:23 2012 +0000 +++ b/src/mainwindow.cpp Tue Feb 14 16:48:01 2012 +0000 @@ -122,7 +122,6 @@ setUnifiedTitleAndToolBarOnMac(true); connectActions(); clearState(); - updateFsWatcher(); enableDisableActions(); if (m_firstStart) { @@ -254,11 +253,9 @@ { QStringList params; - if (m_showAllFiles) { - params << "stat" << "-A"; - } else { - params << "stat" << "-ardum"; - } + // We always stat all files, regardless of whether we're showing + // them all, because we need them for the filesystem monitor + params << "stat" << "-A"; m_lastStatOutput = ""; @@ -1429,7 +1426,6 @@ if (result) { enableDisableActions(); clearState(); - updateFsWatcher(); hgQueryPaths(); done = true; } @@ -1515,7 +1511,6 @@ if (openLocal(local)) { enableDisableActions(); clearState(); - updateFsWatcher(); hgQueryPaths(); } }