Fix path
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user