Changeset 943 for trunk


Ignore:
Timestamp:
Aug 5, 2011, 4:57:07 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

OS/2: QFileSystemWatcher engine could watch duplicate paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/io/qfilesystemwatcher_os2.cpp

    r942 r943  
    172172        }
    173173        QList<PathInfo> &variants = watchedPaths[normalPath];
     174        bool alreadyAdded = false;
    174175        foreach (const PathInfo &pi, variants) {
    175             if (pi.path == path)
    176                 continue;
    177         }
     176            if (pi.path == path) {
     177                alreadyAdded = true;
     178                break;
     179            }
     180        }
     181        if (alreadyAdded)
     182            continue;
     183
    178184        variants << PathInfo(path, type);
    179185        it.remove();
Note: See TracChangeset for help on using the changeset viewer.