summaryrefslogtreecommitdiff
path: root/src/sel_items_adder.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-09-11 22:41:42 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-09-11 22:41:42 +0200
commitc8097a898ef8ac1d0afb367bb6b368edd9cb558f (patch)
treeb1a59c52afc596978f4947566702cb3e7a311ff9 /src/sel_items_adder.cpp
parent63413368c8e7446a8fd39dad3e801aa19fe65382 (diff)
get rid of locale_to_utf where it's not needed anymore
Diffstat (limited to 'src/sel_items_adder.cpp')
-rw-r--r--src/sel_items_adder.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sel_items_adder.cpp b/src/sel_items_adder.cpp
index a7495e91..c90b2498 100644
--- a/src/sel_items_adder.cpp
+++ b/src/sel_items_adder.cpp
@@ -179,17 +179,16 @@ void SelectedItemsAdder::EnterPressed()
Statusbar::unlock();
if (!playlist.empty())
{
- std::string utf_playlist = locale_to_utf_cpy(playlist);
Mpd.StartCommandsList();
for (auto it = list.begin(); it != list.end(); ++it)
- Mpd.AddToPlaylist(utf_playlist, *it);
+ Mpd.AddToPlaylist(playlist, *it);
if (Mpd.CommitCommandsList())
Statusbar::msg("Selected item(s) added to playlist \"%s\"", playlist.c_str());
}
}
else if (pos > 1 && pos < w->size()-1) // add items to existing playlist
{
- std::string playlist = locale_to_utf_cpy(w->current().value());
+ std::string playlist = w->current().value();
Mpd.StartCommandsList();
for (auto it = list.begin(); it != list.end(); ++it)
Mpd.AddToPlaylist(playlist, *it);