From c45f205593a9ba49e8484584a7d61fc7d10a4569 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 7 Feb 2014 23:13:24 +0100 Subject: Main: chop separators from music directory Move call from Mapper.cxx. --- src/Main.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Main.cxx') diff --git a/src/Main.cxx b/src/Main.cxx index 22e71195a..b7f914cdb 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -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(); -- cgit v1.2.3