forked from qt-creator/qt-creator
PathChooser: Handle things like %{buildDir}/../something
Do not call cleanPath on rawFileName as that sanitizes %{buildDir}/.. to '.', which is not what is expected for a rawFileName. Change-Id: I4bb95b33f4c12c79ed0029d5fbf539e113a3774c Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -318,7 +318,7 @@ QString PathChooser::rawPath() const
|
||||
|
||||
FileName PathChooser::rawFileName() const
|
||||
{
|
||||
return FileName::fromUserInput(d->m_lineEdit->text());
|
||||
return FileName::fromString(QDir::fromNativeSeparators(d->m_lineEdit->text()));
|
||||
}
|
||||
|
||||
FileName PathChooser::fileName() const
|
||||
|
Reference in New Issue
Block a user