diff options
author | faust747 <[email protected]> | 2025-07-02 14:33:06 +0300 |
---|---|---|
committer | Stanislav Polukhanov <[email protected]> | 2025-07-03 11:12:25 +0000 |
commit | 6357d475f8dca90d66e9cb7beec80dd0ec9aee01 (patch) | |
tree | e4da6c18288a0d74c68ada15cb729ce7d32dacce | |
parent | 53311b59983fac82cda45e5f963ca1a9211e4ca6 (diff) |
tree
Change-Id: I8c79f2495ae7d0f25e04a3f215ee65a4fda55db5
Reviewed-by: hjk <[email protected]>
-rw-r--r-- | src/plugins/resourceeditor/resourcenode.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp index 7b67fefdcb6..77763e288c7 100644 --- a/src/plugins/resourceeditor/resourcenode.cpp +++ b/src/plugins/resourceeditor/resourcenode.cpp @@ -236,10 +236,12 @@ ResourceTopLevelNode::ResourceTopLevelNode(const FilePath &filePath, m_contents = contents; } - if (filePath.isChildOf(base)) - setDisplayName(filePath.relativeChildPath(base).toUserOutput()); - else - setDisplayName(filePath.toUserOutput()); + // device prefix is removed by nativePath() + if (filePath.isChildOf(base)){ + setDisplayName(filePath.relativeChildPath(base).nativePath()); + } else { + setDisplayName(filePath.nativePath()); + } addInternalNodes(); } |