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:
committed by
Andrzej Rybczak
parent
91477e034d
commit
3661b37896
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user