forked from qt-creator/qt-creator
Another little fix for delayed registering actions.
Make them be correctly updated regarding to current context.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user