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:
treblid 2012-02-13 14:44:28 +01:00 committed by Max Kellermann
parent d7d9dbd2c2
commit edac498d03
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}