diff --git a/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputVectorDataParameter.cxx b/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputVectorDataParameter.cxx index e6310448f86d749050a8169ec665608601db7fb7..a0127db1d2677417862ae1cd91b6cf75d6b461fb 100644 --- a/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputVectorDataParameter.cxx +++ b/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputVectorDataParameter.cxx @@ -38,9 +38,12 @@ QtWidgetInputVectorDataParameter::~QtWidgetInputVectorDataParameter() void QtWidgetInputVectorDataParameter::DoUpdateGUI() { //update lineedit - QString text( m_InputVectorDataParam->GetFileName().c_str() ); - if (text != m_Input->text()) - m_Input->setText(text); + if(m_InputVectorDataParam->HasUserValue()) + { + QString text( m_InputVectorDataParam->GetFileName().c_str() ); + if (text != m_Input->text()) + m_Input->setText(text); + } } void QtWidgetInputVectorDataParameter::DoCreateWidget()