This commit is contained in:
craig
2012-03-01 18:30:18 +00:00
committed by craig
parent 3fb1814ac1
commit f5ae3c14b4

View File

@@ -49,8 +49,10 @@
QString MPDParseUtils::fixPath(const QString &f)
{
QString d(f);
if (!d.isEmpty() && !d.endsWith('/')) {
if (!d.isEmpty()) {
d.replace(QLatin1String("//"), QChar('/'));
}
if (!d.isEmpty() && !d.endsWith('/')) {
d+='/';
}
return d;