Commit 8d8a2bed authored by Scott Wheeler's avatar Scott Wheeler

Noticed that this regexp wasn't quite right. Don't remove the leading 0

for files that have a length of less than one minute.  Note that that this
won't take effect for cached items until the cache is removed or "redisplay"
is used.

svn path=/trunk/kdemultimedia/juk/; revision=217808
parent dcc44244
......@@ -78,7 +78,7 @@ QString Tag::readBitrate(const KFileMetaInfo &metaInfo)
QString Tag::readLength(const KFileMetaInfo &metaInfo)
{
if(metaInfo.isValid() && !metaInfo.isEmpty())
return metaInfo.item("Length").string().stripWhiteSpace().replace(QRegExp("^0+"), QString::null);
return metaInfo.item("Length").string().stripWhiteSpace().replace(QRegExp("^0+([0-9])"), "\\1");
else
return QString::null;
}
......
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