diff --git a/packagestructure.cpp b/packagestructure.cpp index afaeb5161..48e712da3 100644 --- a/packagestructure.cpp +++ b/packagestructure.cpp @@ -449,8 +449,8 @@ void PackageStructure::setPath(const QString &path) if (valid) { QFileInfo info(basePath); - if (info.isDir()) { - basePath.append("/"); + if (info.isDir() && !basePath.endsWith('/')) { + basePath.append('/'); } //kDebug() << "basePath is" << basePath; } else {