Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
aebb8b3f
Commit
aebb8b3f
authored
Dec 06, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed an infinite loop in the destructor of ACTION_MANAGER;
parent
fc2d8e91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
action_manager.cpp
common/tool/action_manager.cpp
+3
-3
No files found.
common/tool/action_manager.cpp
View file @
aebb8b3f
...
@@ -67,13 +67,13 @@ void ACTION_MANAGER::RegisterAction( TOOL_ACTION* aAction )
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment