summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/actionmanager/command.cpp
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2011-01-18 17:03:14 +0100
committercon <qtc-committer@nokia.com>2011-01-18 17:03:33 +0100
commit0a8af1720de2743f0f4896b1d543593c8f9f5ffc (patch)
tree5e2c34753c213d0e7ed54d464cc4b6bfabbc0d5c /src/plugins/coreplugin/actionmanager/command.cpp
parentbae2cefc45dc51e6680c5a36bef28f9c5cfffad4 (diff)
downloadqt-creator-0a8af1720de2743f0f4896b1d543593c8f9f5ffc.tar.gz
Another little fix for delayed registering actions.
Make them be correctly updated regarding to current context.
Diffstat (limited to 'src/plugins/coreplugin/actionmanager/command.cpp')
-rw-r--r--src/plugins/coreplugin/actionmanager/command.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/actionmanager/command.cpp b/src/plugins/coreplugin/actionmanager/command.cpp
index e8ac5d3ed6..e19e89e255 100644
--- a/src/plugins/coreplugin/actionmanager/command.cpp
+++ b/src/plugins/coreplugin/actionmanager/command.cpp
@@ -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)