diff options
author | Michal Klocek <michal.klocek@digia.com> | 2013-02-26 13:19:10 +0100 |
---|---|---|
committer | Niels Weber <niels.weber@digia.com> | 2013-02-26 14:29:58 +0100 |
commit | a852656506028cffa354f63ff8aa143376840534 (patch) | |
tree | 8470dd12fa8230a56baa50cbce026746a752ae87 /src | |
parent | 5e498443042eddf5a56d47f55a2b7b970eb5262e (diff) |
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 <niels.weber@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/kdtools/kdsysinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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())) |