Skip to content
Snippets Groups Projects
Commit 1e15e030 authored by dt's avatar dt
Browse files

PathChooser: Use QDir::cleanPath() in path()

Reviewed-By: hunger
parent 31aae405
No related merge requests found
...@@ -194,10 +194,9 @@ void PathChooser::setEnvironment(const Utils::Environment &env) ...@@ -194,10 +194,9 @@ void PathChooser::setEnvironment(const Utils::Environment &env)
emit changed(rawPath()); emit changed(rawPath());
} }
QString PathChooser::path() const QString PathChooser::path() const
{ {
return m_d->expandedPath(QDir::fromNativeSeparators(m_d->m_lineEdit->text())); return QDir::cleanPath(m_d->expandedPath(QDir::fromNativeSeparators(m_d->m_lineEdit->text())));
} }
QString PathChooser::rawPath() const QString PathChooser::rawPath() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment