diff options
author | João Abecasis <joao@abecasis.name> | 2009-07-16 17:02:23 (GMT) |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-07-22 12:36:14 (GMT) |
commit | e316b2249f329b4754b23d9cc8c418c3645dc6db (patch) | |
tree | 42b385546ecb8bd126b2a5822786509315aca3b4 | |
parent | be1d9a4288e2b17a3d5a699da229076682ef99bd (diff) | |
download | Qt-e316b2249f329b4754b23d9cc8c418c3645dc6db.zip Qt-e316b2249f329b4754b23d9cc8c418c3645dc6db.tar.gz Qt-e316b2249f329b4754b23d9cc8c418c3645dc6db.tar.bz2 |
Faster condition comes first
Reviewed-by: Marius Storm-Olsen
-rw-r--r-- | src/corelib/io/qdiriterator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qdiriterator.cpp b/src/corelib/io/qdiriterator.cpp index 7de0a0b..eae1dfa 100644 --- a/src/corelib/io/qdiriterator.cpp +++ b/src/corelib/io/qdiriterator.cpp @@ -240,7 +240,7 @@ bool QDirIteratorPrivate::shouldFollowDirectory(const QFileInfo &fileInfo) return false; // Check symlinks - if (fileInfo.isSymLink() && !(iteratorFlags & QDirIterator::FollowSymlinks)) { + if (!(iteratorFlags & QDirIterator::FollowSymlinks) && fileInfo.isSymLink()) { // Follow symlinks only if FollowSymlinks was passed return false; } |