From: vsr Date: Thu, 21 Jul 2005 13:58:39 +0000 (+0000) Subject: Fix a bug of menu management (action is registered incorrectly if -1 (default) id... X-Git-Tag: V3_0_1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2b39d11d99650f3b164451189293ad67bbec5463;p=modules%2Fgui.git Fix a bug of menu management (action is registered incorrectly if -1 (default) id is used) --- diff --git a/src/CAM/CAM_Module.cxx b/src/CAM/CAM_Module.cxx index 81ef5e1d0..a01e60285 100755 --- a/src/CAM/CAM_Module.cxx +++ b/src/CAM/CAM_Module.cxx @@ -439,7 +439,7 @@ int CAM_Module::registerAction( const int id, QAction* a ) static int generatedId = -1; ident = id < 0 ? --generatedId : id; - myActionMap.insert( id, a ); + myActionMap.insert( ident, a ); if ( menuMgr() ) menuMgr()->registerAction( a );