summaryrefslogtreecommitdiff
path: root/src/playlist.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-08-15 19:53:25 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2009-08-15 19:53:25 +0200
commitecf3d209954b5e6983b5ea6a0ec17c91a6182767 (patch)
tree824423a9eb2fc59208206a83f4069718c82d0948 /src/playlist.cpp
parent80e2476852646f02c6e3e5f9274476feb796ef5e (diff)
enclose song format in braces in Playlist::SongInColumnsToString
Diffstat (limited to 'src/playlist.cpp')
-rw-r--r--src/playlist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/playlist.cpp b/src/playlist.cpp
index 2c1cfec3..3ab8af89 100644
--- a/src/playlist.cpp
+++ b/src/playlist.cpp
@@ -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 result;
+ std::string result = "{";
for (std::vector<Column>::const_iterator it = Config.columns.begin(); it != Config.columns.end(); ++it)
{
if (it->type == 't')
@@ -465,6 +465,7 @@ std::string Playlist::SongInColumnsToString(const MPD::Song &s, void *)
}
result += " ";
}
+ result += "}";
return s.toString(result);
}