Commit 5ce167b6 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix double initialization of actions in the action manager

parent bd6c098f
...@@ -108,10 +108,10 @@ void CompositionDockerDock::setCanvas(KoCanvasBase * canvas) ...@@ -108,10 +108,10 @@ void CompositionDockerDock::setCanvas(KoCanvasBase * canvas)
KisAction *renameAction = m_canvas->viewManager()->actionManager()->createAction("rename_composition"); KisAction *renameAction = m_canvas->viewManager()->actionManager()->createAction("rename_composition");
connect(renameAction, SIGNAL(triggered()), this, SLOT(renameComposition())); connect(renameAction, SIGNAL(triggered()), this, SLOT(renameComposition()));
m_actions.append(renameAction); m_actions.append(renameAction);
} } else {
Q_FOREACH (KisAction *action, m_actions) {
Q_FOREACH (KisAction *action, m_actions) { m_canvas->viewManager()->actionManager()->addAction(action->objectName(), action);
m_canvas->viewManager()->actionManager()->addAction(action->objectName(), action); }
} }
updateModel(); updateModel();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment