From 663aba02d2859b204601974f1821ccbe1c308383 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 4 Oct 2009 17:04:48 +0200 Subject: [PATCH] allow for empty strings in MPD::Song::SetTag() if they weren't allowed, clearing tag value in tag editor would be impossible. --- src/song.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/song.cpp b/src/song.cpp index 368df63..ef75ecd 100644 --- a/src/song.cpp +++ b/src/song.cpp @@ -504,8 +504,6 @@ const char *MPD::Song::MyFilename() const void MPD::Song::SetTag(mpd_tag_type type, unsigned pos, const std::string &value) { - if (value.empty()) - return; if (!itsTags) itsTags = new TagMap; (*itsTags)[std::make_pair(type, pos)] = value; -- 2.11.4.GIT