Mercurial > hg > easyhg
diff src/fswatcher.cpp @ 647:a03264984ef8
Merge
author | Chris Cannam |
---|---|
date | Mon, 21 Jan 2013 10:22:44 +0000 |
parents | ae67ea0af696 |
children | 646e48a0d3a5 |
line wrap: on
line diff
--- a/src/fswatcher.cpp Fri Jan 11 10:29:36 2013 +0000 +++ b/src/fswatcher.cpp Mon Jan 21 10:22:44 2013 +0000 @@ -5,8 +5,8 @@ Based on hgExplorer by Jari Korhonen Copyright (c) 2010 Jari Korhonen - Copyright (c) 2012 Chris Cannam - Copyright (c) 2012 Queen Mary, University of London + Copyright (c) 2013 Chris Cannam + Copyright (c) 2013 Queen Mary, University of London This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -154,7 +154,9 @@ FsWatcher *watcher = reinterpret_cast<FsWatcher *>(clientCallBackInfo); const char *const *cpaths = reinterpret_cast<const char *const *>(paths); for (size_t i = 0; i < numEvents; ++i) { +#ifdef DEBUG_FSWATCHER std::cerr << "path " << i << " = " << cpaths[i] << std::endl; +#endif watcher->fsDirectoryChanged(QString::fromLocal8Bit(cpaths[i])); } } @@ -371,7 +373,9 @@ bool FsWatcher::manuallyCheckTrackedFiles() { +#ifdef DEBUG_FSWATCHER std::cerr << "FsWatcher::manuallyCheckTrackedFiles" << std::endl; +#endif bool foundChanges = false; for (PathTimeMap::iterator i = m_trackedFileUpdates.begin();