From b936e7687695c5e04e486e1778e1157076806dba Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Mon, 17 Oct 2011 14:57:53 +0200
Subject: [PATCH] ENH: update the StackWidget when something changed in the GUI

---
 Code/Wrappers/QtWidget/otbWrapperQtWidgetChoiceParameter.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetChoiceParameter.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetChoiceParameter.cxx
index 763f8e0db3..de38049d8d 100644
--- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetChoiceParameter.cxx
+++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetChoiceParameter.cxx
@@ -73,6 +73,7 @@ void QtWidgetChoiceParameter::DoCreateWidget()
   connect( m_ComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(SetValue(int)) );
   connect( m_ComboBox, SIGNAL(currentIndexChanged(int)), m_StackWidget, SLOT(setCurrentIndex(int)) );
   connect( m_ComboBox, SIGNAL(currentIndexChanged(int)), GetModel(), SLOT(NotifyUpdate()) );
+  connect( GetModel(), SIGNAL(UpdateGui()), this, SLOT(UpdateGUI() ) );
 
   m_VLayout = new QVBoxLayout;
   m_VLayout->addWidget(m_ComboBox);
-- 
GitLab