Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/dialogs/qfilesystemmodel.cpp

    r651 r769  
    13611361        return d->index(rootPath());
    13621362
     1363    //We remove the watcher on the previous path
     1364    if (!rootPath().isEmpty() && rootPath() != QLatin1String(".")) {
     1365        //This remove the watcher for the old rootPath
     1366        d->fileInfoGatherer.removePath(rootPath());
     1367        //This line "marks" the node as dirty, so the next fetchMore
     1368        //call on the path will ask the gatherer to install a watcher again
     1369        //But it doesn't re-fetch everything
     1370        d->node(rootPath())->populatedChildren = false;
     1371    }
     1372
    13631373    // We have a new valid root path
    13641374    d->rootDir = newPathDir;
Note: See TracChangeset for help on using the changeset viewer.