Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit c2ed1329 authored by Scott Wheeler's avatar Scott Wheeler

Handle the case that if the user sets the year to "0" they're trying to

clear the field.

svn path=/trunk/kdemultimedia/juk/; revision=250891
parent f3dc0b3f
......@@ -140,6 +140,11 @@ void OggTag::setTrackNumber(int value)
void OggTag::setYear(int value)
if(value == 0) {
writeCommentItem("Date", QString::null);
QDate d = QDate::fromString(readCommentString("Date"), Qt::ISODate);
if(d.setYMD(value, d.month(), {
QDateTime dt = d;
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