From: vsv Date: Mon, 27 Jun 2005 06:56:41 +0000 (+0000) Subject: Bug 9293: Popup menu correction X-Git-Tag: T3_0_0_a4~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eccb307cd39f914718eb2d727ea8e7499aeedf33;p=modules%2Fvisu.git Bug 9293: Popup menu correction --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index fa406592..4ccc0765 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -2197,8 +2197,9 @@ createPopupMenus() // View parameters mgr->insert ( action( VISU_VIEW_PARAMS ), -1, -1, -1 ); // save view params - //jfa tmp:mgr->setRule( action( 4046 ), "(client='VTKViewer' and selcount=0) or (selcount=1 and type='VISU::TVIEW3D')", true ); - mgr->setRule( action( VISU_VIEW_PARAMS ), "selcount=0", true ); //jfa tmp + //jfa tmp:mgr->setRule( action( 4046 ),"(client='VTKViewer' and selcount=0) or (selcount=1 and type='VISU::TVIEW3D')", true ); + + mgr->setRule( action( VISU_VIEW_PARAMS ), "client='VTKViewer' and selcount=0", true ); //jfa tmp mgr->insert ( action( VISU_RESTORE_VIEW_PARAMS ), -1, -1, -1 ); // restore view params mgr->setRule( action( VISU_RESTORE_VIEW_PARAMS ), "selcount=1 and type='VISU::TVIEW3D'", true ); mgr->insert ( action( VISU_DELETE_VIEW_PARAMS ), -1, -1, -1 ); // delete view params