Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2440f09
)
PAL5597 - forbid to export empty mesh by popup
author
asl
<asl@opencascade.com>
Tue, 8 Nov 2005 12:26:47 +0000
(12:26 +0000)
committer
asl
<asl@opencascade.com>
Tue, 8 Nov 2005 12:26:47 +0000
(12:26 +0000)
src/SMESHGUI/SMESHGUI.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI.cxx
b/src/SMESHGUI/SMESHGUI.cxx
index 476970f619a11c835a07eed503c659579bb68e65..3dc209fa39e01320cb8131f9a59a7c3452d8e073 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI.cxx
+++ b/
src/SMESHGUI/SMESHGUI.cxx
@@
-2434,6
+2434,19
@@
bool SMESHGUI::CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QString
popup->removeItem( 1102 );
}
else if ( theObject == "Mesh" || theObject == "SubMesh" || theObject == "Group" ) {
popup->removeItem( 1102 );
}
else if ( theObject == "Mesh" || theObject == "SubMesh" || theObject == "Group" ) {
+ if( theObject=="Mesh" )
+ {
+ CORBA::Object_var obj = SMESH::SObjectToObject( SO, SMESH::GetActiveStudyDocument() );
+ if( !CORBA::is_nil( obj ) )
+ {
+ SMESH::SMESH_Mesh_var aMesh = SMESH::SMESH_Mesh::_narrow( obj );
+ if( !aMesh->_is_nil() && aMesh->NbNodes()==0 )
+ {
+ popup->removeItem( 122 );
+ popup->removeItem( 123 );
+ }
+ }
+ }
// get actor
GEOM::GEOM_Object_var aShapeObject = SMESH::GetShapeOnMeshOrSubMesh( SO );
if ( aShapeObject->_is_nil() ) {
// get actor
GEOM::GEOM_Object_var aShapeObject = SMESH::GetShapeOnMeshOrSubMesh( SO );
if ( aShapeObject->_is_nil() ) {