Salome HOME
Qt4 porting: automatic resizing of Hypothesis Construction: Number of Segments dialog.
authormkr <mkr@opencascade.com>
Tue, 1 Apr 2008 11:40:34 +0000 (11:40 +0000)
committermkr <mkr@opencascade.com>
Tue, 1 Apr 2008 11:40:34 +0000 (11:40 +0000)
src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx

index a97afece4177c631182cc71ae8861b0ddda694a1..928611d8a133e401bdbeac9340778f2d636344bb 100644 (file)
@@ -399,7 +399,7 @@ void StdMeshersGUI_NbSegmentsCreator::onValueChanged()
   if( isFunc )
     myPreview->setConversion( StdMeshersGUI_DistrPreview::Conversion( myConv->checkedId() ) );
 
-  if ( dlg() ) {
+  if ( (QtxComboBox*)sender() == myDistr && dlg() ) {
     QApplication::instance()->processEvents();
     dlg()->updateGeometry();
     dlg()->setMinimumSize( dlg()->minimumSizeHint().width(), dlg()->minimumSizeHint().height() );