Main: chop separators from music directory

Move call from Mapper.cxx.
This commit is contained in:
Max Kellermann 2014-02-07 23:13:24 +01:00
parent 027b2063ba
commit c45f205593
2 changed files with 3 additions and 1 deletions

View File

@ -145,6 +145,9 @@ glue_mapper_init(Error &error)
if (music_dir.IsNull())
music_dir = GetUserMusicDir();
if (!music_dir.IsNull())
music_dir.ChopSeparators();
#ifdef ENABLE_DATABASE
if (!music_dir.IsNull()) {
const auto music_dir_utf8 = music_dir.ToUTF8();

View File

@ -92,7 +92,6 @@ mapper_set_music_dir(AllocatedPath &&path)
assert(!path.IsNull());
music_dir_fs = std::move(path);
music_dir_fs.ChopSeparators();
const auto music_dir_utf8 = music_dir_fs.ToUTF8();