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:
Tobias Hunger
2016-06-24 13:44:19 +02:00
parent 21ef857c7a
commit 1b5c46660c

View File

@@ -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