Loading common/tool/action_manager.cpp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -67,13 +67,13 @@ void ACTION_MANAGER::RegisterAction( TOOL_ACTION* aAction ) void ACTION_MANAGER::UnregisterAction( TOOL_ACTION* aAction ) void ACTION_MANAGER::UnregisterAction( TOOL_ACTION* aAction ) { { m_actionNameIndex.erase( aAction->m_name ); m_actionIdIndex.erase( aAction->m_id ); // Indicate that the ACTION_MANAGER no longer care about the object // Indicate that the ACTION_MANAGER no longer care about the object aAction->setActionMgr( NULL ); aAction->setActionMgr( NULL ); aAction->setId( -1 ); aAction->setId( -1 ); m_actionNameIndex.erase( aAction->m_name ); m_actionIdIndex.erase( aAction->m_id ); if( aAction->HasHotKey() ) if( aAction->HasHotKey() ) m_actionHotKeys.erase( aAction->m_currentHotKey ); m_actionHotKeys.erase( aAction->m_currentHotKey ); } } Loading Loading
common/tool/action_manager.cpp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -67,13 +67,13 @@ void ACTION_MANAGER::RegisterAction( TOOL_ACTION* aAction ) void ACTION_MANAGER::UnregisterAction( TOOL_ACTION* aAction ) void ACTION_MANAGER::UnregisterAction( TOOL_ACTION* aAction ) { { m_actionNameIndex.erase( aAction->m_name ); m_actionIdIndex.erase( aAction->m_id ); // Indicate that the ACTION_MANAGER no longer care about the object // Indicate that the ACTION_MANAGER no longer care about the object aAction->setActionMgr( NULL ); aAction->setActionMgr( NULL ); aAction->setId( -1 ); aAction->setId( -1 ); m_actionNameIndex.erase( aAction->m_name ); m_actionIdIndex.erase( aAction->m_id ); if( aAction->HasHotKey() ) if( aAction->HasHotKey() ) m_actionHotKeys.erase( aAction->m_currentHotKey ); m_actionHotKeys.erase( aAction->m_currentHotKey ); } } Loading