Index: sources/device/DeviceError.cpp =================================================================== diff -u -r0e122c98700951af539d9f47c5578e26d640fcc7 -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/device/DeviceError.cpp (.../DeviceError.cpp) (revision 0e122c98700951af539d9f47c5578e26d640fcc7) +++ sources/device/DeviceError.cpp (.../DeviceError.cpp) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. + * Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file DeviceError.cpp * \author (last) Behrouz NematiPour - * \date (last) 12-Dec-2021 + * \date (last) 22-Oct-2023 * \author (original) Behrouz NematiPour * \date (original) 06-Jun-2021 * @@ -35,6 +35,7 @@ QT_TR_NOOP("The requested value is incorrect." ), // eDevice_Scripts_Error_Incorrect_Req QT_TR_NOOP("The response value is incorrect." ), // eDevice_Scripts_Error_Incorrect_Rsp + QT_TR_NOOP("The watch file cannot be created." ), // eDevice_Watch_Error_NotCreate QT_TR_NOOP("The watch file is not found." ), // eDevice_Watch_Error_NotFound QT_TR_NOOP("The watch file cannot be added." ), // eDevice_Watch_Error_NotAdded @@ -58,7 +59,7 @@ DeviceError::Scripts_Error_Enum DeviceError::checkScript(QString &vScript, const QString &vShellScript) { DeviceError::Scripts_Error_Enum err = DeviceError::eDevice_OK; - vScript = _scriptsFolder + vShellScript; + vScript = Storage::Scripts_Path_Name() + vShellScript; QFileInfo info(vScript); if ( ! info.exists () ) { err = DeviceError::eDevice_Scripts_Error_NotFound ; goto lOut; } if ( ! info.isExecutable() ) { err = DeviceError::eDevice_Scripts_Error_NotExecutable ; goto lOut; }