browser: Do not modify the items name if we're loading a playlist

item.name does already contain the complete path, there's no need to add
it again.
This commit is contained in:
Wieland Hoffmann
2011-12-30 18:48:46 +01:00
committed by Andrzej Rybczak
parent 91477e034d
commit 3661b37896

View File

@@ -151,7 +151,7 @@ void Browser::EnterPressed()
}
else
{
std::string name = itsBrowsedDir + "/" + item.name;
std::string name = item.name;
ShowMessage("Loading playlist %s...", name.c_str());
locale_to_utf(name);
if (Mpd.LoadPlaylist(name))
@@ -213,7 +213,7 @@ void Browser::SpacePressed()
}
case itPlaylist:
{
std::string name = itsBrowsedDir == "/" ? item.name : itsBrowsedDir + "/" + item.name;
std::string name = item.name;
ShowMessage("Loading playlist %s...", name.c_str());
locale_to_utf(name);
if (Mpd.LoadPlaylist(name))