Commit 40c1c1f1 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Fix removing ID3v1 genre with id3lib, [#bugs:111].

parent 6d01c608
...@@ -685,7 +685,7 @@ static bool setGenreNum(ID3_Tag* tag, int num) ...@@ -685,7 +685,7 @@ static bool setGenreNum(ID3_Tag* tag, int num)
if (num != 0xff) { if (num != 0xff) {
str = QString(QLatin1String("(%1)")).arg(num); str = QString(QLatin1String("(%1)")).arg(num);
} else { } else {
str.clear(); str = QLatin1String("");
} }
changed = getTextField(tag, ID3FID_CONTENTTYPE) != str && changed = getTextField(tag, ID3FID_CONTENTTYPE) != str &&
setTextField(tag, ID3FID_CONTENTTYPE, str); setTextField(tag, ID3FID_CONTENTTYPE, str);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment