Commit 035816d1 authored by Michael Reeves's avatar Michael Reeves

Do not falsly report an error when comparing an empty directory.

parent f0ac14b4
......@@ -1157,8 +1157,11 @@ bool FileAccessJobHandler::listDir(t_DirectoryList* pDirList, bool bRecursive, b
QFileInfoList fiList = dir.entryInfoList();
// No Permission to read directory or other error.
m_bSuccess = false;
Sadly Qt provides no error information making this case ambigious.
A readablity check is the best we can do.
m_bSuccess = dir.isReadable();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment