Commit 0a8af172 authored by con's avatar con
Browse files

Another little fix for delayed registering actions.

Make them be correctly updated regarding to current context.
parent bae2cefc
......@@ -372,6 +372,7 @@ Action *ActionManagerPrivate::overridableAction(const Id &id)
m_mainWnd->addAction(a->action());
a->action()->setObjectName(id);
a->action()->setShortcutContext(Qt::ApplicationShortcut);
a->setCurrentContext(m_context);
}
return a;
......
......@@ -468,6 +468,7 @@ void Action::addOverrideAction(QAction *action, const Core::Context &context, bo
}
}
m_scriptableMap[action] = scriptable;
setCurrentContext(m_context);
}
void Action::removeOverrideAction(QAction *action)
......
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