From 61eccb924cd5cd760d364cfecbb2e4d88898d393 Mon Sep 17 00:00:00 2001 From: Guillaume Pasero <guillaume.pasero@c-s.fr> Date: Wed, 4 Nov 2015 10:38:37 +0100 Subject: [PATCH] BUG: Mantis-1097: allow user to type a path in the input vector data line edit --- .../src/otbWrapperQtWidgetInputVectorDataParameter.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputVectorDataParameter.cxx b/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputVectorDataParameter.cxx index e6310448f8..a0127db1d2 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() -- GitLab