tag editor: fix locating a song
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user