forked from qt-creator/qt-creator
PathChooser: Use QDir::cleanPath() in path()
Reviewed-By: hunger
This commit is contained in:
@@ -194,10 +194,9 @@ void PathChooser::setEnvironment(const Utils::Environment &env)
|
||||
emit changed(rawPath());
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user