Commit be88c38e authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Utils: Support ~ in PathChooser

Change-Id: Ib4b79f8ba27ab856dfeb93a8b697b087be90d633
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 0bf40a73
......@@ -319,12 +319,12 @@ void PathChooser::setEnvironment(const Environment &env)
QString PathChooser::path() const
{
return d->expandedPath(QDir::fromNativeSeparators(d->m_lineEdit->text()));
return d->expandedPath(rawPath());
}
QString PathChooser::rawPath() const
{
return QDir::fromNativeSeparators(d->m_lineEdit->text());
return FileName::fromUserInput(QDir::fromNativeSeparators(d->m_lineEdit->text())).toString();
}
FileName PathChooser::fileName() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment