mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 00:10:33 +05:00
Add needed message for bug PAL5437.
This commit is contained in:
parent
102ebded1b
commit
882f929e86
@ -1279,6 +1279,10 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
||||
if ( vtkwnd ) {
|
||||
int nbSel = selected.Extent();
|
||||
if (nbSel != 1){
|
||||
SUIT_MessageBox::warn1(desktop(),
|
||||
tr("SMESH_WRN_WARNING"),
|
||||
tr("SMESH_WRN_NO_AVAILABLE_DATA"),
|
||||
tr("SMESH_BUT_OK"));
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1343,7 +1347,8 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
||||
}
|
||||
SMESH::RepaintCurrentView();
|
||||
}
|
||||
}else{
|
||||
}
|
||||
else{
|
||||
SUIT_MessageBox::warn1(desktop(),
|
||||
tr("SMESH_WRN_WARNING"),
|
||||
tr("SMESH_WRN_VIEWER_VTK"),
|
||||
@ -1583,13 +1588,20 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
||||
}
|
||||
updateObjBrowser();
|
||||
|
||||
}catch(const SALOME::SALOME_Exception & S_ex){
|
||||
}
|
||||
catch(const SALOME::SALOME_Exception & S_ex){
|
||||
SalomeApp_Tools::QtCatchCorbaException(S_ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(nbSel==0) {
|
||||
SUIT_MessageBox::warn1(desktop(),
|
||||
tr("SMESH_WRN_WARNING"),
|
||||
tr("SMESH_WRN_NO_AVAILABLE_DATA"),
|
||||
tr("SMESH_BUT_OK"));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -165,6 +165,10 @@ msgstr "Activate Link Selection Mode"
|
||||
msgid "SMESH_WRN_EMPTY_NAME"
|
||||
msgstr "Empty name is not valid"
|
||||
|
||||
#Not available data
|
||||
msgid "SMESH_WRN_NO_AVAILABLE_DATA"
|
||||
msgstr "No available data in selection"
|
||||
|
||||
#Smesh polyedre cretion error
|
||||
msgid "SMESH_POLYEDRE_CREATE_ERROR"
|
||||
msgstr "Polyedron creation error"
|
||||
|
Loading…
Reference in New Issue
Block a user