fixed swapped parameters

This commit is contained in:
thrust26 2024-01-05 22:16:52 +01:00
parent 402ee101c8
commit 5642b4ff56
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ bool FSNode::getAllChildren(FSList& fslist, ListMode mode,
bool includeParentDirectory,
const CancelCheck& isCancelled) const
{
if(getChildren(fslist, mode, filter, includeParentDirectory, true, isCancelled))
if(getChildren(fslist, mode, filter, true, includeParentDirectory, isCancelled))
{
// Sort only once at the end
#if defined(ZIP_SUPPORT)
@ -165,7 +165,7 @@ bool FSNode::getChildren(FSList& fslist, ListMode mode,
}
// Add parent node, if it is valid to do so
if (includeParentDirectory && hasParent())
if (includeParentDirectory && hasParent() && mode != ListMode::FilesOnly)
{
FSNode parent = getParent();
parent.setName("..");