Changed Action constructor to take a pointer to the Keymap it belongs too, meaning Keymap::addAction is automatically called
svn-id: r33885
This commit is contained in:
parent
6d0ed23b44
commit
c61294e70f
5 changed files with 29 additions and 49 deletions
|
@ -47,7 +47,6 @@ Keymap::~Keymap() {
|
|||
void Keymap::addAction(Action *action) {
|
||||
if (findAction(action->id))
|
||||
error("Action with id %d already in KeyMap!", action->id);
|
||||
action->setParent(this);
|
||||
_actions.push_back(action);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue