From 30d4e3ea6f59e8f9a36a213b0315737a743d0033 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 6 May 2010 13:32:48 +0000 Subject: [PATCH] fix for bug: in the QDS_ComboBox the first item can not be selected --- src/QDS/QDS_ComboBox.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) -- 2.39.2