From 73a8ffe277505a74c7e1eeb975ec1f6a4a0b566b Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Thu, 19 Mar 2009 16:07:00 +0100
Subject: [PATCH] Fixes:    Session restore bolds the wrong project

Task:     246800
Details:  The value was restored correctly, but due to a optimization, a signal wasn't emitted.
---
 src/plugins/projectexplorer/session.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/projectexplorer/session.cpp b/src/plugins/projectexplorer/session.cpp
index cf0d79f8e01..d7d4d93d62b 100644
--- a/src/plugins/projectexplorer/session.cpp
+++ b/src/plugins/projectexplorer/session.cpp
@@ -638,7 +638,9 @@ bool SessionManager::loadImpl(const QString &fileName)
                                     tr("Could not load session %1").arg(fileName));
             success = false;
         }
-        setStartupProject(m_file->m_startupProject);
+        // m_file->load() sets the m_file->startupProject
+        // but doesn't emit this signal, so we do it here
+        emit startupProjectChanged(m_file->m_startupProject);
     }
 
     if (success) {
-- 
GitLab