diff --git a/src/media_library.cpp b/src/media_library.cpp index 440f5f7c..f984ac31 100644 --- a/src/media_library.cpp +++ b/src/media_library.cpp @@ -643,12 +643,11 @@ void MediaLibrary::LocateSong(const MPD::Song &s) if (Songs->Empty()) Update(); - std::string song = s.GetTitle(); - if (song != Songs->Current().GetTitle()) + if (s.GetHash() != Songs->Current().GetHash()) { for (size_t i = 0; i < Songs->Size(); ++i) { - if (song == (*Songs)[i].GetTitle()) + if (s.GetHash() == (*Songs)[i].GetHash()) { Songs->Highlight(i); break;