From c8b018766af45d322d805da95070e0ea112aa858 Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Date: Fri, 19 Mar 2010 17:49:47 +0100
Subject: [PATCH] VCS: Annotate task window: Give action global context.

---
 src/plugins/projectexplorer/taskwindow.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/plugins/projectexplorer/taskwindow.cpp b/src/plugins/projectexplorer/taskwindow.cpp
index 493c5039324..a569fd5f21c 100644
--- a/src/plugins/projectexplorer/taskwindow.cpp
+++ b/src/plugins/projectexplorer/taskwindow.cpp
@@ -469,9 +469,13 @@ TaskWindow::TaskWindow()
     m_listview->addAction(command->action());
     connect(m_copyAction, SIGNAL(triggered()), SLOT(copy()));
 
+    // Annotate using VCS: Make visible in all contexts
     m_vcsAnnotateAction = new QAction(tr("&Annotate"), this);
+    m_vcsAnnotateAction->setToolTip("Annotate using version control system");
+    QList<int> annotateContext = m_taskWindowContext->context();
+    annotateContext << Core::ICore::instance()->uniqueIDManager()->uniqueIdentifier(QLatin1String(Core::Constants::C_GLOBAL));
     command = core->actionManager()->
-            registerAction(m_vcsAnnotateAction, QLatin1String("ProjectExplorer.Task.VCS_Annotate"), m_taskWindowContext->context());
+            registerAction(m_vcsAnnotateAction, QLatin1String("ProjectExplorer.Task.VCS_Annotate"), annotateContext);
     m_listview->addAction(command->action());
     connect(m_vcsAnnotateAction, SIGNAL(triggered()), SLOT(vcsAnnotate()));
 
-- 
GitLab