diff --git a/src/corelib/io/qdiriterator.cpp b/src/corelib/io/qdiriterator.cpp index bd4f1fd583..30d1c211c7 100644 --- a/src/corelib/io/qdiriterator.cpp +++ b/src/corelib/io/qdiriterator.cpp @@ -319,8 +319,7 @@ void QDirIteratorPrivate::checkAndPushDirectory(const QFileInfo &fileInfo) return; // Stop link loops - if (!visitedLinks.isEmpty() && - visitedLinks.contains(fileInfo.canonicalFilePath())) + if (visitedLinks.contains(fileInfo.canonicalFilePath())) return; pushDirectory(fileInfo);