mapper: use directory_is_root() instead of isRootDirectory()
This commit is contained in:
parent
f0b865b4ca
commit
1c2f24dfc6
@ -109,11 +109,10 @@ map_uri_fs(const char *uri)
|
|||||||
char *
|
char *
|
||||||
map_directory_fs(const struct directory *directory)
|
map_directory_fs(const struct directory *directory)
|
||||||
{
|
{
|
||||||
const char *dirname = directory_get_path(directory);
|
if (directory_is_root(directory))
|
||||||
if (isRootDirectory(dirname))
|
|
||||||
return g_strdup(music_dir);
|
return g_strdup(music_dir);
|
||||||
|
|
||||||
return map_uri_fs(dirname);
|
return map_uri_fs(directory_get_path(directory));
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
Loading…
Reference in New Issue
Block a user