//=================================================================================
void SMESHGUI_OrientationElementsDlg::ClickOnCancel()
{
- QAD_Application::getDesktop()->SetSelectionMode( 4 );
+ QAD_Application::getDesktop()->SetSelectionMode( ActorSelection );
disconnect( mySelection, 0, this, 0 );
mySMESHGUI->ResetState() ;
reject() ;
if(nbElements < 1)
return ;
- if ( mySelection->SelectionMode() != 3 ) {
+ if ( mySelection->SelectionMode() != FaceSelection ) {
QAD_MessageBox::warn1 ( QAD_Application::getDesktop(), tr ("SMESH_WRN_WARNING"),
- tr ("SMESH_WRN_SELECTIONMODE_ELEMENTS"), tr ("SMESH_BUT_YES") );
+ tr ("SMESH_WRN_SELECTIONMODE_ELEMENTS"), tr ("SMESH_BUT_OK") );
return;
}