Index: sources/device/DeviceModels.cpp =================================================================== diff -u -r6c1e7ff26ce49512b1d63623f7e8dd61dea831a0 -r4738eb7857cb8fe9c49a9be4e211edc11e764a33 --- sources/device/DeviceModels.cpp (.../DeviceModels.cpp) (revision 6c1e7ff26ce49512b1d63623f7e8dd61dea831a0) +++ sources/device/DeviceModels.cpp (.../DeviceModels.cpp) (revision 4738eb7857cb8fe9c49a9be4e211edc11e764a33) @@ -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.