diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-01-05 15:43:24 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-01-05 15:53:33 (GMT) |
commit | b167c8b31c6da7b3eb5083396c447c679f1a591a (patch) | |
tree | ddb8d3e854535d205f4307b610eafc747dc1cbbd /src/gui/dialogs/qfilesystemmodel.cpp | |
parent | afcdce4739aa030afa41400fa403b6f69302008f (diff) | |
download | Qt-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/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 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; } |