Changeset 947
- Timestamp:
- Aug 8, 2011, 9:35:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/io/qfilesystemwatcher_os2.cpp
r946 r947 42 42 ****************************************************************************/ 43 43 44 45 44 46 #include "qfilesystemwatcher.h" 45 47 #include "qfilesystemwatcher_os2_p.h" … … 51 53 52 54 #include "qdebug.h" 55 56 57 58 59 53 60 54 61 // OS/2 has the Dos*ChangeNotify API for file system change notifications but … … 212 219 arc = DosQueryPathInfo(QFile::encodeName(path), FIL_STANDARD, 213 220 &newInfo, sizeof(newInfo)); 221 214 222 if (arc == NO_ERROR) 215 223 watchedPaths.insert(path, newInfo); … … 228 236 229 237 foreach (const QString &path, paths) { 238 230 239 watchedPaths.remove(path); 231 240 } … … 255 264 256 265 locker.relock(); 266 267 257 268 258 269 for (PathMap::iterator it = watchedPaths.begin(); … … 273 284 newInfo.attrFile != info.attrFile) { 274 285 // there was a change, memorize it and update the info 286 275 287 changedPaths << path; 276 288 info = newInfo;