From b856c2f8b4669c817a2f8b72630bb1d1b1541fde Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20Abecasis?= Date: Tue, 21 Aug 2012 09:32:24 +0200 Subject: [PATCH] Don't do path conversions on isEmpty() Change-Id: I4b5eefe74c6f741d1d0870d502798a5e3d0e7a2a Reviewed-by: Prasanth Ullattil Reviewed-by: Shane Kearns --- src/corelib/io/qfilesystementry.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/corelib/io/qfilesystementry.cpp b/src/corelib/io/qfilesystementry.cpp index 032a5bd..ffb703c 100644 --- a/src/corelib/io/qfilesystementry.cpp +++ b/src/corelib/io/qfilesystementry.cpp @@ -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 -- 2.7.4