aboutsummaryrefslogtreecommitdiffstats
path: root/src/Mapper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mapper.cxx')
-rw-r--r--src/Mapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mapper.cxx b/src/Mapper.cxx
index c9ef4316b..f29fd0646 100644
--- a/src/Mapper.cxx
+++ b/src/Mapper.cxx
@@ -223,7 +223,7 @@ map_song_detach(const LightSong &song)
{
DetachedSong detached(song);
- if (detached.IsInDatabase()) {
+ if (detached.IsInDatabase() && !detached.HasRealURI()) {
const auto uri = song.GetURI();
detached.SetRealURI(PathTraitsUTF8::Build(music_dir_utf8.c_str(),
uri.c_str()));