From: asl Date: Thu, 6 May 2010 13:32:48 +0000 (+0000) Subject: fix for bug: in the QDS_ComboBox the first item can not be selected X-Git-Tag: V5_1_4rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=30d4e3ea6f59e8f9a36a213b0315737a743d0033;p=modules%2Fgui.git fix for bug: in the QDS_ComboBox the first item can not be selected --- diff --git a/src/QDS/QDS_ComboBox.cxx b/src/QDS/QDS_ComboBox.cxx index f0d8f8041..89ba77461 100644 --- a/src/QDS/QDS_ComboBox.cxx +++ b/src/QDS/QDS_ComboBox.cxx @@ -553,7 +553,11 @@ void QDS_ComboBox::onTextChanged( const QString& /*txt*/ ) void QDS_ComboBox::onActivated( int idx ) { if ( comboBox() ) - comboBox()->setCurrentIndex( comboBox()->currentIndex() ); + { + int ind = comboBox()->currentIndex(); + comboBox()->setCurrentIndex( -1 ); + comboBox()->setCurrentIndex( ind ); + } int id = getId( idx ); if ( id != -1 )