Skip to content

Commit

Permalink
fixed: folders must be stacked before files (thanks jonathan)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkortstiege committed Aug 13, 2011
1 parent 48f1ffd commit d315e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/FileItem.cpp
Expand Up @@ -1998,10 +1998,10 @@ void CFileItemList::Stack(bool stackFiles /* = true */)
// items needs to be sorted for stuff below to work properly
Sort(SORT_METHOD_LABEL, SORT_ORDER_ASC);

StackFolders();

if (stackFiles)
StackFiles();

StackFolders();
}

void CFileItemList::StackFolders()
Expand Down

0 comments on commit d315e46

Please sign in to comment.