summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/rbutilqt/base/utils.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp
index 5c80e1225c..60bacd709e 100644
--- a/rbutil/rbutilqt/base/utils.cpp
+++ b/rbutil/rbutilqt/base/utils.cpp
@@ -90,11 +90,12 @@ bool Utils::recursiveRmdir( const QString &dirName )
90//! @return returns exact casing of path, empty string if path not found. 90//! @return returns exact casing of path, empty string if path not found.
91QString Utils::resolvePathCase(QString path) 91QString Utils::resolvePathCase(QString path)
92{ 92{
93 QStringList elems; 93 int start;
94 QString realpath; 94 QString realpath;
95 QStringList elems = path.split("/", QString::SkipEmptyParts);
95 96
96 elems = path.split("/", QString::SkipEmptyParts); 97 if(path.isEmpty())
97 int start; 98 return QString();
98#if defined(Q_OS_WIN32) 99#if defined(Q_OS_WIN32)
99 // on windows we must make sure to start with the first entry (i.e. the 100 // on windows we must make sure to start with the first entry (i.e. the
100 // drive letter) instead of a single / to make resolving work. 101 // drive letter) instead of a single / to make resolving work.