diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-03-30 23:39:26 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-03-30 23:40:13 (GMT) |
commit | f17e398f661d903a9fda0bfb3725fd881656e9d4 (patch) | |
tree | e73f78e676b4ba5c257951ae90c7e05aa23f82cf /src/gui/dialogs/qfilesystemmodel.cpp | |
parent | 0d41d766d13bc6ee8a068aef4b88567c111d0e0c (diff) | |
download | Qt-f17e398f661d903a9fda0bfb3725fd881656e9d4.zip Qt-f17e398f661d903a9fda0bfb3725fd881656e9d4.tar.gz Qt-f17e398f661d903a9fda0bfb3725fd881656e9d4.tar.bz2 |
Add a workaround for a bug in Mac filesystem watcher.
Reviewed-by:TrustMe
Diffstat (limited to 'src/gui/dialogs/qfilesystemmodel.cpp')
-rw-r--r-- | src/gui/dialogs/qfilesystemmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qfilesystemmodel.cpp b/src/gui/dialogs/qfilesystemmodel.cpp index 3757ad7..24faa59 100644 --- a/src/gui/dialogs/qfilesystemmodel.cpp +++ b/src/gui/dialogs/qfilesystemmodel.cpp @@ -1362,7 +1362,7 @@ QModelIndex QFileSystemModel::setRootPath(const QString &newPath) return d->index(rootPath()); //We remove the watcher on the previous path - if (!rootPath().isEmpty()) { + if (!rootPath().isEmpty() && rootPath() != QLatin1String(".")) { //This remove the watcher for the old rootPath d->fileInfoGatherer.removePath(rootPath()); //This line "marks" the node as dirty, so the next fetchMore |