enclose song format in braces in Playlist::SongInColumnsToString

This commit is contained in:
Andrzej Rybczak
2009-08-15 19:53:25 +02:00
parent 80e2476852
commit ecf3d20995

View File

@@ -451,7 +451,7 @@ std::string Playlist::SongToString(const MPD::Song &s, void *data)
std::string Playlist::SongInColumnsToString(const MPD::Song &s, void *) std::string Playlist::SongInColumnsToString(const MPD::Song &s, void *)
{ {
std::string result; std::string result = "{";
for (std::vector<Column>::const_iterator it = Config.columns.begin(); it != Config.columns.end(); ++it) for (std::vector<Column>::const_iterator it = Config.columns.begin(); it != Config.columns.end(); ++it)
{ {
if (it->type == 't') if (it->type == 't')
@@ -465,6 +465,7 @@ std::string Playlist::SongInColumnsToString(const MPD::Song &s, void *)
} }
result += " "; result += " ";
} }
result += "}";
return s.toString(result); return s.toString(result);
} }