#include "SVTK_ViewWindow.h"
#include "SALOME_ListIO.hxx"
+#include "SalomeApp_Tools.h"
#include "utilities.h"
// OCCT Includes
connect(myEditCurrentArgument, SIGNAL(textChanged(const QString&)),
SLOT(onTextChange(const QString&)));
- /* Move widget on the botton right corner of main widget */
- int x, y;
- mySMESHGUI->DefineDlgPosition(this, x, y);
- this->move(x, y);
this->show(); /* displays Dialog */
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
try {
SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();
aResult = aMeshEditor->RemoveElements(anArrayOfIdeces.inout());
- } catch (...) {
+ } catch (const SALOME::SALOME_Exception& S_ex) {
+ SalomeApp_Tools::QtCatchCorbaException(S_ex);
+ myEditCurrentArgument->clear();
+ } catch (...){
+ myEditCurrentArgument->clear();
}
if (aResult) {
myEditCurrentArgument->clear();
+ mySelector->ClearIndex();
SMESH::UpdateView();
}
}
//=================================================================================
void SMESHGUI_RemoveElementsDlg::ClickOnCancel()
{
- mySelectionMgr->clearSelected();
+ //mySelectionMgr->clearSelected();
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection);
disconnect(mySelectionMgr, 0, this, 0);