Commit 4e4325ad authored by Rashad Kanavath's avatar Rashad Kanavath

BUG:814 QLineEdit set only if m_HasUserValue is true

parent 68628bf5
......@@ -35,10 +35,13 @@ QtWidgetInputImageParameter::~QtWidgetInputImageParameter()
void QtWidgetInputImageParameter::DoUpdateGUI()
{
//update lineedit
QString text( m_InputImageParam->GetFileName().c_str() );
if (text != m_Input->text())
m_Input->setText(text);
//update lineedit if HasUserValue flag is set(from xml)
if(m_InputImageParam->HasUserValue())
{
QString text( m_InputImageParam->GetFileName().c_str() );
if (text != m_Input->text())
m_Input->setText(text);
}
}
void QtWidgetInputImageParameter::DoCreateWidget()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment