From 596a37e3a6487cc047223ab72096154f8964585c Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 18 Sep 2024 16:22:42 +0200 Subject: [PATCH] Wizards: Do not keep permissions for files from qrc Files that come from resource files have their permissions messed up and are no longer writable (well, technically the files within the resource file are not writable...). Do not take over permissions from these to the files created by the wizard. Amends bf905c1fed6d440301800f2cfcf39b9fc6c2e7a6 Fixes: QTCREATORBUG-31593 Change-Id: I5fed3aee57a22d0b66a00ee244abdda5177b0564 Reviewed-by: Christian Stenger --- .../projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp index e6f4c4a0104..1644257a971 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp @@ -163,7 +163,8 @@ Core::GeneratedFile JsonWizardFileGenerator::generateFile(const File &file, return Core::GeneratedFile(); } } - gf.setPermissions(file.source.permissions()); + if (!file.source.isResourceFile()) // resource files mess up permissions, stay with default + gf.setPermissions(file.source.permissions()); } Core::GeneratedFile::Attributes attributes;