forked from qt-creator/qt-creator
Environment, expandVariables() can return native separators
Convert to '/' at the right place.
This commit is contained in:
@@ -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