Don't do path conversions on isEmpty()

Change-Id: I4b5eefe74c6f741d1d0870d502798a5e3d0e7a2a
Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
This commit is contained in:
João Abecasis 2012-08-21 09:32:24 +02:00 committed by Qt by Nokia
parent 1cd85c541f
commit b856c2f8b4

View 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