summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-01-05 15:43:24 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-01-05 15:53:33 (GMT)
commitb167c8b31c6da7b3eb5083396c447c679f1a591a (patch)
treeddb8d3e854535d205f4307b610eafc747dc1cbbd /src/gui/dialogs
parentafcdce4739aa030afa41400fa403b6f69302008f (diff)
downloadQt-b167c8b31c6da7b3eb5083396c447c679f1a591a.zip
Qt-b167c8b31c6da7b3eb5083396c447c679f1a591a.tar.gz
Qt-b167c8b31c6da7b3eb5083396c447c679f1a591a.tar.bz2
Display broken symlinks in the filesystem model.
A broken symlink has a -1 size so we need to special case that. Task-number:QTBUG-7119 Reviewed-by:olivier
Diffstat (limited to 'src/gui/dialogs')
-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 8e78503..21cb737 100644
--- a/src/gui/dialogs/qfilesystemmodel.cpp
+++ b/src/gui/dialogs/qfilesystemmodel.cpp
@@ -1779,7 +1779,7 @@ void QFileSystemModelPrivate::_q_fileSystemChanged(const QString &path, const QL
node->fileName = fileName;
}
- if (info.size() == -1) {
+ if (info.size() == -1 && !info.isSymLink()) {
removeNode(parentNode, fileName);
continue;
}