diff --git a/src/core/kmountpoint.cpp b/src/core/kmountpoint.cpp --- a/src/core/kmountpoint.cpp +++ b/src/core/kmountpoint.cpp @@ -161,7 +161,11 @@ device = QFileInfo(mountedFrom).canonicalFilePath(); } } - // TODO: Strip trailing '/' ? + + // Chop trailing slash + if (mountedFrom.endsWith(QLatin1Char('/'))) { + mountedFrom.chop(1); + } } void KMountPoint::Private::finalizeCurrentMountPoint(DetailsNeededFlags infoNeeded)