aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/externaltoolmanager.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-02-19 11:35:47 +0100
committerhjk <hjk@theqtcompany.com>2015-02-26 10:09:03 +0000
commit7f001dab1b9dd05160e78adb0554ad3478ba363c (patch)
tree6d4dcafbd9ded333eb6e971bb70af17b36f5cae2 /src/plugins/coreplugin/externaltoolmanager.cpp
parent5b8046305028f936cc00aa3e4a9a31a64f6776fe (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.cpp2
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());