summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/qfilesystemmodel.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-03-30 23:39:26 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-03-30 23:40:13 (GMT)
commitf17e398f661d903a9fda0bfb3725fd881656e9d4 (patch)
treee73f78e676b4ba5c257951ae90c7e05aa23f82cf /src/gui/dialogs/qfilesystemmodel.cpp
parent0d41d766d13bc6ee8a068aef4b88567c111d0e0c (diff)
downloadQt-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.cpp2
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