From a852656506028cffa354f63ff8aa143376840534 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Tue, 26 Feb 2013 13:19:10 +0100 Subject: Fixes issue with wrong estimation of space on the mounted volume * adds leading slash during reconstruction of path * part of fix for: Task-number: QTIFW-178 Task-number: QTIFW-198 Change-Id: Ib610442653074878c43630c1082f9fd6e45f71d2 Reviewed-by: Niels Weber --- src/libs/kdtools/kdsysinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/kdtools/kdsysinfo.cpp b/src/libs/kdtools/kdsysinfo.cpp index 8e56d01ac..194e5c5b5 100644 --- a/src/libs/kdtools/kdsysinfo.cpp +++ b/src/libs/kdtools/kdsysinfo.cpp @@ -73,7 +73,7 @@ VolumeInfo VolumeInfo::fromPath(const QString &path) if (parts.isEmpty()) targetPath = QDir(QDir::rootPath()); else - targetPath = QDir(parts.join(QDir::separator())); + targetPath = QDir(QLatin1Char('/') + parts.join(QDir::separator())); } if (targetPath.canonicalPath().startsWith(volume.mountPath())) -- cgit v1.2.3