forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Cristian Adam
parent
913dc9549e
commit
2e4d57db35
@@ -258,6 +258,7 @@ void ResourceEditorPlugin::extensionsInitialized()
|
|||||||
QTC_ASSERT(pn, continue);
|
QTC_ASSERT(pn, continue);
|
||||||
const Utils::FilePath path = file->filePath();
|
const Utils::FilePath path = file->filePath();
|
||||||
auto topLevel = std::make_unique<ResourceTopLevelNode>(path, pn->filePath());
|
auto topLevel = std::make_unique<ResourceTopLevelNode>(path, pn->filePath());
|
||||||
|
topLevel->setEnabled(file->isEnabled());
|
||||||
topLevel->setIsGenerated(file->isGenerated());
|
topLevel->setIsGenerated(file->isGenerated());
|
||||||
pn->replaceSubtree(file, std::move(topLevel));
|
pn->replaceSubtree(file, std::move(topLevel));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user