Commit 0ff8b9e2 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Json Wizard: Fix unsetting of attributes

This did trigger all kinds of side-effects, one of them was

Task-number: QTCREATORBUG-14294
Change-Id: If39f827828e9c5a2559bd6b3b5392ac819fbd931
Reviewed-by: default avatarDaniel Teske <>
parent dd3a3009
......@@ -162,8 +162,10 @@ bool JsonWizard::boolFromVariant(const QVariant &v, Utils::MacroExpander *expand
void JsonWizard::removeAttributeFromAllFiles(Core::GeneratedFile::Attribute a)
for (int i = 0; i < m_files.count(); ++i)
m_files[i].file.setAttributes( ^ a);
for (int i = 0; i < m_files.count(); ++i) {
if ( & a)
m_files[i].file.setAttributes( ^ a);
void JsonWizard::accept()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment