summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@nokia.com>2009-08-11 14:20:57 (GMT)
committerAndy Shaw <andy.shaw@nokia.com>2009-08-11 14:20:57 (GMT)
commitc6030230d0af230cfcf084cc7bc16515c863c37b (patch)
tree48a4267ff3465cb255665d50444f8a7af6acedb8
parent1645a7b6e156623cfcb527f24bcbfc41f9e3fea0 (diff)
downloadQt-c6030230d0af230cfcf084cc7bc16515c863c37b.zip
Qt-c6030230d0af230cfcf084cc7bc16515c863c37b.tar.gz
Qt-c6030230d0af230cfcf084cc7bc16515c863c37b.tar.bz2
Make QFileInfo::isSymlink() work for symlinks on Windows
This feature on Windows was added in Windows 2000, but its not so easy to utilize until at least Vista was released. Reviewed-by: Marius Storm-Olsen
-rw-r--r--src/corelib/io/qfsfileengine_win.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/io/qfsfileengine_win.cpp b/src/corelib/io/qfsfileengine_win.cpp
index 819034a..7c75525 100644
--- a/src/corelib/io/qfsfileengine_win.cpp
+++ b/src/corelib/io/qfsfileengine_win.cpp
@@ -1525,6 +1525,8 @@ QAbstractFileEngine::FileFlags QFSFileEngine::fileFlags(QAbstractFileEngine::Fil
ret |= FileType;
}
} else if (d->doStat()) {
+ if (d->fileAttrib & FILE_ATTRIBUTE_REPARSE_POINT)
+ ret |= LinkType;
if (d->fileAttrib & FILE_ATTRIBUTE_DIRECTORY) {
ret |= DirectoryType;
} else {