X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FRepairGUI%2FRepairGUI_GlueDlg.cxx;h=d79190e2332b51f05489bac1b8e0480b00bae783;hb=ae3549a5e4390b68ca7189237374c70c6aaa385b;hp=e4f44624692b1d85936cd8854d03c06d79e43e51;hpb=004197ec827d52331f0d529202eb4e52a1c4388f;p=modules%2Fgeom.git diff --git a/src/RepairGUI/RepairGUI_GlueDlg.cxx b/src/RepairGUI/RepairGUI_GlueDlg.cxx index e4f446246..d79190e23 100644 --- a/src/RepairGUI/RepairGUI_GlueDlg.cxx +++ b/src/RepairGUI/RepairGUI_GlueDlg.cxx @@ -157,6 +157,8 @@ void RepairGUI_GlueDlg::Init() //globalSelection( GEOM_COMPOUND ); mainFrame()->GroupBoxPublish->show(); + //Hide preview checkbox + mainFrame()->CheckBoxPreview->hide(); /* signals and slots connections */ connect( buttonOk(), SIGNAL(clicked()), this, SLOT(ClickOnOk())); @@ -237,7 +239,7 @@ void RepairGUI_GlueDlg::ConstructorsClicked( int constructorId ) updateGeometry(); resize( minimumSizeHint() ); - displayPreview(); + processPreview(); updateButtonState(); activateSelection(); SelectionIntoArgument(); @@ -250,6 +252,7 @@ void RepairGUI_GlueDlg::ConstructorsClicked( int constructorId ) //================================================================================= void RepairGUI_GlueDlg::ClickOnOk() { + setIsApplyAndClose( true ); if ( ClickOnApply() ) ClickOnCancel(); } @@ -298,9 +301,8 @@ void RepairGUI_GlueDlg::SelectionIntoArgument() if ( aSelList.Extent() == 1 ) { Handle(SALOME_InteractiveObject) anIO = aSelList.First(); - Standard_Boolean aRes; - myObject = GEOMBase::ConvertIOinGEOMObject( anIO, aRes ); - if ( aRes ) + myObject = GEOMBase::ConvertIOinGEOMObject( anIO ); + if ( !CORBA::is_nil( myObject ) ) myEditCurrentArgument->setText( GEOMBase::GetName( myObject ) ); } updateButtonState();