]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
fix for bug: in the QDS_ComboBox the first item can not be selected
authorasl <asl@opencascade.com>
Thu, 6 May 2010 13:32:48 +0000 (13:32 +0000)
committerasl <asl@opencascade.com>
Thu, 6 May 2010 13:32:48 +0000 (13:32 +0000)
src/QDS/QDS_ComboBox.cxx

index f0d8f804113d0125f0a40e7be7fd18d1a8e98060..89ba7746121d9002fc95729f26638b1ddf43b638 100644 (file)
@@ -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 )