forked from qt-creator/qt-creator
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 bf905c1fed
Fixes: QTCREATORBUG-31593
Change-Id: I5fed3aee57a22d0b66a00ee244abdda5177b0564
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -163,6 +163,7 @@ Core::GeneratedFile JsonWizardFileGenerator::generateFile(const File &file,
|
|||||||
return Core::GeneratedFile();
|
return Core::GeneratedFile();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!file.source.isResourceFile()) // resource files mess up permissions, stay with default
|
||||||
gf.setPermissions(file.source.permissions());
|
gf.setPermissions(file.source.permissions());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user