diff options
Diffstat (limited to 'src/corelib/io/qfile.cpp')
-rw-r--r-- | src/corelib/io/qfile.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/io/qfile.cpp b/src/corelib/io/qfile.cpp index e46ba28f47..d991e86839 100644 --- a/src/corelib/io/qfile.cpp +++ b/src/corelib/io/qfile.cpp @@ -421,12 +421,15 @@ QFile::exists() const /*! Returns true if the file specified by \a fileName exists; otherwise returns false. + + \note If \a fileName is a symlink that points to a non-existing + file, false is returned. */ bool QFile::exists(const QString &fileName) { - return QFileInfo(fileName).exists(); + return QFileInfo::exists(fileName); } /*! |