forked from qt-creator/qt-creator
Environment, expandVariables() can return native separators
Convert to '/' at the right place.
This commit is contained in:
@@ -219,7 +219,7 @@ QString Environment::searchInPath(const QStringList &executables,
|
||||
const QStringList &additionalDirs) const
|
||||
{
|
||||
foreach (const QString &executable, executables) {
|
||||
QString exec = expandVariables(executable);
|
||||
QString exec = QDir::cleanPath(expandVariables(executable));
|
||||
|
||||
if (exec.isEmpty())
|
||||
continue;
|
||||
|
||||
@@ -217,7 +217,7 @@ QString PathChooserPrivate::expandedPath(const QString &input) const
|
||||
{
|
||||
if (input.isEmpty())
|
||||
return input;
|
||||
const QString path = QDir::fromNativeSeparators(m_environment.expandVariables(input));
|
||||
const QString path = QDir::cleanPath(m_environment.expandVariables(input));
|
||||
if (path.isEmpty())
|
||||
return path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user