From: vsr Date: Thu, 2 Mar 2006 13:26:55 +0000 (+0000) Subject: * correct unregisterAction() method X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=afea6c523bbd4d0030981e88dc4fe377effd761b;p=modules%2Fgui.git * correct unregisterAction() method --- diff --git a/src/CAM/CAM_Module.cxx b/src/CAM/CAM_Module.cxx index 0caabbe7f..264054bdf 100755 --- a/src/CAM/CAM_Module.cxx +++ b/src/CAM/CAM_Module.cxx @@ -593,12 +593,12 @@ bool CAM_Module::unregisterAction( QAction* a ) return false; if ( menuMgr() ) { int id = menuMgr()->actionId( a ); - if ( id != -1 && menuMgr()->contains( id, -1 ) ) + if ( id != -1 && menuMgr()->containsMenu( id, -1 ) ) return false; } if ( toolMgr() ) { int id = toolMgr()->actionId( a ); - if ( id != -1 && toolMgr()->contains( id ) ) + if ( id != -1 && toolMgr()->containsAction( id ) ) return false; } if ( menuMgr() )