summaryrefslogtreecommitdiffstats
path: root/depends/util
diff options
context:
space:
mode:
Diffstat (limited to 'depends/util')
-rw-r--r--depends/util/src/pathutils.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/depends/util/src/pathutils.cpp b/depends/util/src/pathutils.cpp
index 485d03e8..20888754 100644
--- a/depends/util/src/pathutils.cpp
+++ b/depends/util/src/pathutils.cpp
@@ -23,10 +23,7 @@
QString PathCombine(QString path1, QString path2)
{
- if (!path1.endsWith('/'))
- return path1.append('/').append(path2);
- else
- return path1.append(path2);
+ return QDir::cleanPath(path1 + QDir::separator() + path2);
}
QString PathCombine(QString path1, QString path2, QString path3)