directory: fix reverse order of child directories
Directories are loaded in reverse order when MPD starts. Only fixed when doing a rescan.
This commit is contained in:
parent
d7d9dbd2c2
commit
edac498d03
|
@ -111,7 +111,7 @@ directory_new_child(struct directory *parent, const char *name_utf8)
|
|||
struct directory *directory = directory_new(path_utf8, parent);
|
||||
g_free(allocated);
|
||||
|
||||
list_add(&directory->siblings, &parent->children);
|
||||
list_add_tail(&directory->siblings, &parent->children);
|
||||
return directory;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue