From 67a62183f080b5dad0fcafc6142e156829e12be8 Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@theqtcompany.com>
Date: Mon, 12 Jan 2015 14:05:37 +0100
Subject: [PATCH] BlackBerry: Make current project behave like it used to

ProjectTree::currentProject was changed, update the code to
get the old behavior.

That behavior is most likely not the best to have, but that
is for another patch:-)

Change-Id: I8c84825443b8383f738c237ec67332e62199fe5e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
---
 src/plugins/qnx/bardescriptorfilenodemanager.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/plugins/qnx/bardescriptorfilenodemanager.cpp b/src/plugins/qnx/bardescriptorfilenodemanager.cpp
index 0d47584e702..8bb40bd3da5 100644
--- a/src/plugins/qnx/bardescriptorfilenodemanager.cpp
+++ b/src/plugins/qnx/bardescriptorfilenodemanager.cpp
@@ -47,6 +47,7 @@
 #include <projectexplorer/buildsteplist.h>
 #include <projectexplorer/project.h>
 #include <projectexplorer/projecttree.h>
+#include <projectexplorer/session.h>
 #include <projectexplorer/target.h>
 #include <projectexplorer/buildconfiguration.h>
 #include <qmakeprojectmanager/qmakenodes.h>
@@ -67,6 +68,8 @@ BarDescriptorFileNodeManager::BarDescriptorFileNodeManager(QObject *parent)
 {
     connect(ProjectExplorer::ProjectTree::instance(), &ProjectExplorer::ProjectTree::currentProjectChanged,
             this, &BarDescriptorFileNodeManager::setCurrentProject);
+    connect(ProjectExplorer::SessionManager::instance(), &ProjectExplorer::SessionManager::startupProjectChanged,
+            this, &BarDescriptorFileNodeManager::setCurrentProject);
 }
 
 void BarDescriptorFileNodeManager::setCurrentProject(ProjectExplorer::Project *project)
-- 
GitLab