summaryrefslogtreecommitdiff
path: root/src/plugins/genericprojectmanager/genericprojectplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-12-20 11:13:26 +0100
committerhjk <hjk@qt.io>2017-12-20 12:35:14 +0000
commitb2a16190e8e53815ef81c248b96dbe55434d7fb5 (patch)
treea8a30382c74b81367639e387850e7106d94b8310 /src/plugins/genericprojectmanager/genericprojectplugin.cpp
parentbc4efa662c75ad862065058d25a34379330f2ac3 (diff)
downloadqt-creator-b2a16190e8e53815ef81c248b96dbe55434d7fb5.tar.gz
Use project id uniformly as project context
The possibly intented flexibility e.g. to have different project types share the same idea of a common context was never used, in all cases we had a 1:1 relation ship between project ids and ids that were used as context. This led to oversights like the one fixed in 60fb35a2. This patch here uses the project id unconditionally as context and drops all context ids. If we'll ever have the situation where the original flexibility was needed, Project::projectContext() could be made virtual and overridden were needed. Also, the context was never modified for any given project, so the updating machinery is not needed. Change-Id: I3f7fac0ed5e4704e126558987c48577f26082dfd Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/genericprojectmanager/genericprojectplugin.cpp')
-rw-r--r--src/plugins/genericprojectmanager/genericprojectplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/genericprojectmanager/genericprojectplugin.cpp b/src/plugins/genericprojectmanager/genericprojectplugin.cpp
index 8cb6c96666..952b3e289a 100644
--- a/src/plugins/genericprojectmanager/genericprojectplugin.cpp
+++ b/src/plugins/genericprojectmanager/genericprojectplugin.cpp
@@ -73,7 +73,7 @@ bool GenericProjectPlugin::initialize(const QStringList &, QString *errorMessage
auto editFilesAction = new QAction(tr("Edit Files..."), this);
Command *command = ActionManager::registerAction(editFilesAction,
- "GenericProjectManager.EditFiles", Context(Constants::PROJECTCONTEXT));
+ "GenericProjectManager.EditFiles", Context(Constants::GENERICPROJECT_ID));
command->setAttribute(Command::CA_Hide);
mproject->addAction(command, ProjectExplorer::Constants::G_PROJECT_FILES);