From: asl Date: Mon, 7 Nov 2005 08:24:51 +0000 (+0000) Subject: PAL5597 - export must appear in popup only for non-empty meshes X-Git-Tag: V3_1_0a3~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e292bda630ab4962307e7c2b2a1524710a0d3b61;p=modules%2Fsmesh.git PAL5597 - export must appear in popup only for non-empty meshes --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index f30f2b8e1..0227331c1 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -2564,8 +2564,10 @@ void SMESHGUI::initialize( CAM_Application* app ) createPopupItem( 1102, OB, hyp_alg ); // REMOVE HYPOTHESIS / ALGORITHMS createPopupItem( 1101, OB, mesh_group + " " + hyp_alg, "" /*"&& $hasReference={false}"*/ ); // RENAME popupMgr()->insert( separator(), -1, 0 ); - createPopupItem( 125, OB, mesh ); // EXPORT_MED - createPopupItem( 126, OB, mesh ); // EXPORT_UNV + + QString only_one_non_empty = QString( " && %1=1 && numberOfNodes>0" ).arg( QtxPopupMgr::Selection::defSelCountParam() ); + createPopupItem( 125, OB, mesh, only_one_non_empty ); // EXPORT_MED + createPopupItem( 126, OB, mesh, only_one_non_empty ); // EXPORT_UNV createPopupItem( 33, OB, subMesh + " " + group ); // DELETE popupMgr()->insert( separator(), -1, 0 );