diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx index 23235e27671c189e6be1f2f8cf3d1510f54548f9..2b14f46a3203e7191992810b9759824070cd63c0 100644 --- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx +++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx @@ -320,6 +320,7 @@ CommandLineLauncher::LoadParameters() const bool paramExists( m_Parser->IsAttributExists( std::string("--").append(paramKey), m_Expression ) ); const bool hasValue = m_Application->HasValue( paramKey ); + param->SetUserValue(true); // Check if mandatory parameter are present and have value if( param->GetMandatory() == true ) { diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetStringParameter.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetStringParameter.cxx index 76ff5134116b1512605964d9b3ce9dcae3df557e..91e2ae4d8fa025375f6f4fe4a9adc3924c238fa7 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetStringParameter.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetStringParameter.cxx @@ -57,7 +57,7 @@ void QtWidgetStringParameter::DoCreateWidget() void QtWidgetStringParameter::SetValue(const QString& value) { m_StringParam->SetValue(value.toStdString()); - + m_StringParam->SetUserValue(true); QString key( QString::fromStdString(m_StringParam->GetKey()) ); emit ParameterChanged(key); }