Commit 2b0e4f40 authored by Scott Wheeler's avatar Scott Wheeler

One more like that last one. This does a little better job of replacing

the zeros at the beginning of track numbers.

svn path=/trunk/kdemultimedia/juk/; revision=165498
parent 12732792
...@@ -60,9 +60,7 @@ Tag::Tag(QString file) ...@@ -60,9 +60,7 @@ Tag::Tag(QString file)
trackNumberString = temp; trackNumberString = temp;
delete [] temp; delete [] temp;
QRegExp zeros("0+"); trackNumberString.replace(QRegExp("^0+"), QString::null);
if(zeros.exactMatch(trackNumberString))
trackNumberString = QString::null;
trackNumber = ID3_GetTrackNum(&tag); trackNumber = ID3_GetTrackNum(&tag);
......
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