diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2016-06-24 13:44:19 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2016-06-27 08:35:58 +0000 |
commit | 1b5c46660cfe8d5d8c48472d49e85db681fcd10b (patch) | |
tree | 50bb6f4ab9d8549af7daa4a22c2993afcd20e08e | |
parent | 21ef857c7abf1a93c44dd42885658941aa9a5e33 (diff) |
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>
-rw-r--r-- | src/libs/utils/pathchooser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp index e14b67d68c..fc0fa389b2 100644 --- a/src/libs/utils/pathchooser.cpp +++ b/src/libs/utils/pathchooser.cpp @@ -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 |