diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2022-11-23 12:53:18 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2022-11-25 11:57:04 +0000 |
commit | 4225f475a49ad188df8786087b8281de7cc0eef4 (patch) | |
tree | 088f58e46ee2cb0917b943033b35a130b6dc7e2d /src/libs | |
parent | ead1b7aa4ae591ba090779fdcd6316b21ee0fde3 (diff) |
FilePath: Do not strip macros when normalizing path
Fixes: QTCREATORBUG-28484
Change-Id: Id6bcd2aef048bd355c196013c54799e4944135bd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/utils/filepath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/filepath.cpp b/src/libs/utils/filepath.cpp index 75fba81867..a5b3381acc 100644 --- a/src/libs/utils/filepath.cpp +++ b/src/libs/utils/filepath.cpp @@ -1529,7 +1529,7 @@ static QString normalizePathSegmentHelper(const QString &name) { const int len = name.length(); - if (len == 0) + if (len == 0 || name.contains("%{")) return name; int i = len - 1; |