tag editor: fix locating a song

master
Andrzej Rybczak 16 years ago
parent 3d41a1585c
commit d2cde15622
  1. 2
      src/tag_editor.cpp

@ -867,7 +867,7 @@ void TagEditor::LocateSong(const MPD::Song &s)
if (itsBrowsedDir != s.GetDirectory()) if (itsBrowsedDir != s.GetDirectory())
{ {
itsBrowsedDir = s.GetDirectory(); itsBrowsedDir = s.GetDirectory();
itsBrowsedDir = itsBrowsedDir.substr(0, itsBrowsedDir.find('/')); itsBrowsedDir = itsBrowsedDir.substr(0, itsBrowsedDir.rfind('/'));
if (itsBrowsedDir.empty()) if (itsBrowsedDir.empty())
itsBrowsedDir = "/"; itsBrowsedDir = "/";
Dirs->Clear(); Dirs->Clear();

Loading…
Cancel
Save