fixed readOnly in packParams

This commit is contained in:
Simon Stürz 2015-05-22 11:52:29 +02:00 committed by Michael Zanetti
parent 860fd13cdb
commit 516e825067

View File

@ -447,8 +447,8 @@ QVariantMap JsonTypes::packParamType(const ParamType &paramType)
if (paramType.inputType() != Types::InputTypeNone) { if (paramType.inputType() != Types::InputTypeNone) {
variantMap.insert("inputType", s_inputType.at(paramType.inputType())); variantMap.insert("inputType", s_inputType.at(paramType.inputType()));
} }
// only add if this param is NOT ediable // only add if this param is NOT writable
if (!paramType.readOnly()) { if (paramType.readOnly()) {
variantMap.insert("readOnly", paramType.readOnly()); variantMap.insert("readOnly", paramType.readOnly());
} }
return variantMap; return variantMap;