]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
the actions should be registered in menu and toolbar managers with id given in Applic...
authorasl <asl@opencascade.com>
Thu, 4 Mar 2010 09:26:03 +0000 (09:26 +0000)
committerasl <asl@opencascade.com>
Thu, 4 Mar 2010 09:26:03 +0000 (09:26 +0000)
src/SUIT/SUIT_Application.cxx

index e1393b9bb4baa849116a53940a262a775bff0a1c..f8772f951cf7aaa674a198ba1289ed4a04d204e2 100755 (executable)
@@ -644,10 +644,10 @@ int SUIT_Application::registerAction( const int id, QAction* a )
   myActionMap.insert( ident, a );
 
   if ( desktop() && desktop()->menuMgr() )
-    desktop()->menuMgr()->registerAction( a );
+    desktop()->menuMgr()->registerAction( a, id );
 
   if ( desktop() && desktop()->toolMgr() )
-    desktop()->toolMgr()->registerAction( a );
+    desktop()->toolMgr()->registerAction( a, id );
 
   if ( desktop() )
     desktop()->addAction( a );