aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfaust747 <[email protected]>2025-07-02 14:33:06 +0300
committerStanislav Polukhanov <[email protected]>2025-07-03 11:12:25 +0000
commit6357d475f8dca90d66e9cb7beec80dd0ec9aee01 (patch)
treee4da6c18288a0d74c68ada15cb729ce7d32dacce
parent53311b59983fac82cda45e5f963ca1a9211e4ca6 (diff)
Remote projects: removed device prefix from .qrc node name in projectHEADmaster
-rw-r--r--src/plugins/resourceeditor/resourcenode.cpp10
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();
}