]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bug #350: multiply creation of obstacles problem.
authormzn <mzn@opencascade.com>
Wed, 29 Jan 2014 14:16:18 +0000 (14:16 +0000)
committermzn <mzn@opencascade.com>
Wed, 29 Jan 2014 14:16:18 +0000 (14:16 +0000)
src/HYDROGUI/HYDROGUI_GeomObjectDlg.cxx
src/HYDROGUI/HYDROGUI_ImportGeomObjectOp.cxx

index aec19adadb9a53638ed26edc34fb14c6e977a8f9..e69a21b73b900a3fdc580ba2abc1681c54a39dc9 100644 (file)
@@ -135,8 +135,10 @@ HYDROGUI_GeomObjectDlg::~HYDROGUI_GeomObjectDlg()
 
 void HYDROGUI_GeomObjectDlg::setObjectNames( const QStringList& theNames )
 {
+  bool isBlocked = myObjects->blockSignals( true );
   myObjects->clear();
   myObjects->addItems( theNames );
+  myObjects->blockSignals( isBlocked );
 
   updateControls();
 }
@@ -201,6 +203,7 @@ void HYDROGUI_GeomObjectDlg::onBrowse()
 
 void HYDROGUI_GeomObjectDlg::reset()
 {
+  myDefaultName.clear();
   if ( myFileSelectionEnabled ) {
     myFileName->clear();
   }
index c27ebb937eb45f4e2d150c4758593c30d0a06b37..7832f3b35dc8fe796c58453b128c849ffaff22b7 100644 (file)
@@ -330,6 +330,9 @@ void HYDROGUI_ImportGeomObjectOp::onExternalOperationFinished(
 
   // Update the default name of the HYDRO object
   updateDefaultName();
+
+  // Close the dialog corresponding to the external operation
+  closeExternalOperationDlg();
 }
 
 void HYDROGUI_ImportGeomObjectOp::closeExternalOperationDlg()