Don't do path conversions on isEmpty()
authorJoão Abecasis <joao.abecasis@nokia.com>
Tue, 21 Aug 2012 07:32:24 +0000 (09:32 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Aug 2012 12:11:59 +0000 (14:11 +0200)
Change-Id: I4b5eefe74c6f741d1d0870d502798a5e3d0e7a2a
Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/corelib/io/qfilesystementry.cpp

index 032a5bd..ffb703c 100644 (file)
@@ -308,8 +308,7 @@ bool QFileSystemEntry::isRoot() const
 
 bool QFileSystemEntry::isEmpty() const
 {
-    resolveNativeFilePath();
-    return m_nativeFilePath.isEmpty();
+    return m_filePath.isEmpty() && m_nativeFilePath.isEmpty();
 }
 
 // private methods