fix copy'n'paste bug

This commit is contained in:
Andrzej Rybczak
2009-10-07 15:22:49 +02:00
parent b0943c28c2
commit 183077d573

View File

@@ -274,7 +274,7 @@ void MPD::Song::SetTrack(const std::string &str, unsigned pos)
void MPD::Song::SetTrack(unsigned track, unsigned pos) void MPD::Song::SetTrack(unsigned track, unsigned pos)
{ {
SetTag(MPD_TAG_ARTIST, pos, IntoStr(track)); SetTag(MPD_TAG_TRACK, pos, IntoStr(track));
} }
void MPD::Song::SetDate(const std::string &str, unsigned pos) void MPD::Song::SetDate(const std::string &str, unsigned pos)
@@ -284,7 +284,7 @@ void MPD::Song::SetDate(const std::string &str, unsigned pos)
void MPD::Song::SetDate(unsigned year, unsigned pos) void MPD::Song::SetDate(unsigned year, unsigned pos)
{ {
SetTag(MPD_TAG_TRACK, pos, IntoStr(year)); SetTag(MPD_TAG_DATE, pos, IntoStr(year));
} }
void MPD::Song::SetGenre(const std::string &str, unsigned pos) void MPD::Song::SetGenre(const std::string &str, unsigned pos)