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:
parent
1cd85c541f
commit
b856c2f8b4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user