diff options
author | hjk <hjk@theqtcompany.com> | 2015-02-19 11:35:47 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2015-02-26 10:09:03 +0000 |
commit | 7f001dab1b9dd05160e78adb0554ad3478ba363c (patch) | |
tree | 6d4dcafbd9ded333eb6e971bb70af17b36f5cae2 /src/plugins/coreplugin/externaltoolmanager.cpp | |
parent | 5b8046305028f936cc00aa3e4a9a31a64f6776fe (diff) |
Core: Make Context parameter to registerAction optional
... and default to C_GLOBAL. A rather common case.
Similar for ActionContainer::addSeparator().
Change-Id: I7f9ba573af201c0a472132d5a494ad17cc4175b7
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/externaltoolmanager.cpp')
-rw-r--r-- | src/plugins/coreplugin/externaltoolmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/externaltoolmanager.cpp b/src/plugins/coreplugin/externaltoolmanager.cpp index 9b99c1a420..72efa03bb2 100644 --- a/src/plugins/coreplugin/externaltoolmanager.cpp +++ b/src/plugins/coreplugin/externaltoolmanager.cpp @@ -244,7 +244,7 @@ void ExternalToolManager::setToolsByCategory(const QMap<QString, QList<ExternalT MessageManager::write(runner->errorString()); }); - command = ActionManager::registerAction(action, externalToolsPrefix.withSuffix(toolId), Context(Constants::C_GLOBAL)); + command = ActionManager::registerAction(action, externalToolsPrefix.withSuffix(toolId)); command->setAttribute(Command::CA_UpdateText); } action->setText(tool->displayName()); |