summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2021-06-23 16:47:25 +0200
committerCristian Adam <cristian.adam@qt.io>2021-06-23 18:37:35 +0000
commit2e4d57db35d3c6096ef3b503c45936ed6d8f5288 (patch)
tree58ff1501f37d765ffa6bb5b94a99f300d740ae69
parent913dc9549e3cbda3deff5632e5e91684bbb6dade (diff)
downloadqt-creator-2e4d57db35d3c6096ef3b503c45936ed6d8f5288.tar.gz
Fix that disabled QRC files were enabled by QRC expansion
The automatic expansion of QRC files to the tree of their contents didn't preserve the "enabled" property of the original QRC node. For CMake projects that resulted in the file system tree still being shown, with only the QRC nodes, when "Hide Disabled Files" was on, instead of hiding the file system tree completely. Change-Id: If1eb88478955dc8635def844cfc501befcbfc329 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
-rw-r--r--src/plugins/resourceeditor/resourceeditorplugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp
index 50708c98c1..25c29e2cdc 100644
--- a/src/plugins/resourceeditor/resourceeditorplugin.cpp
+++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp
@@ -258,6 +258,7 @@ void ResourceEditorPlugin::extensionsInitialized()
QTC_ASSERT(pn, continue);
const Utils::FilePath path = file->filePath();
auto topLevel = std::make_unique<ResourceTopLevelNode>(path, pn->filePath());
+ topLevel->setEnabled(file->isEnabled());
topLevel->setIsGenerated(file->isGenerated());
pn->replaceSubtree(file, std::move(topLevel));
}