Index: sources/device/DeviceModels.cpp =================================================================== diff -u -raa9ba5a44d2015929643dee0b505f19f471594de -rce0f73ee6ec5596888ce00ca6bcd94ee5c4f322d --- sources/device/DeviceModels.cpp (.../DeviceModels.cpp) (revision aa9ba5a44d2015929643dee0b505f19f471594de) +++ sources/device/DeviceModels.cpp (.../DeviceModels.cpp) (revision ce0f73ee6ec5596888ce00ca6bcd94ee5c4f322d) @@ -317,13 +317,8 @@ _data.mAccepted = false; _data.mReason = Device::DeviceError::eDevice_OK; - // set as default if the val is invalid. - _data.mConnectResult = ""; + ok = true; - // get the value - QString val = vByteArray; - ok = ! val.isNull() && val.isSimpleText(); - // check if the vExitCode passed and it has a value other than zero if ( ! ok ){ _data.mReason = Device::DeviceError::eDevice_Scripts_Error_Incorrect_Rsp_Type ; goto lError; } // there is not a valid value if ( vExitCode && *vExitCode ){ _data.mReason = Device::DeviceError::eDevice_ConnectWifi_Error ; goto lApply; } // there still a valid value @@ -335,7 +330,6 @@ // apply returned value in case the passed value is valid (type, range) // regardless of the exit code (success, fail) lApply: - _data.mConnectResult = val; goto lOut; // immediate exit on fail exitcode and invalid returned value.