QbsProjectManager: Fix project node operations.

The qbsProjectData() member function always returned the top-level
project data, which messed up a couple of things, for instance
"build sub-projects" and the node tree updates.
Instead, return the project data corresponding to the node.

Change-Id: If40c441c62334f0069a5fe3cb4873cf973baf135
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Christian Kandeler
2014-08-01 15:45:05 +02:00
parent 49e6e15384
commit f488c10c5a
3 changed files with 5 additions and 6 deletions

View File

@@ -168,7 +168,7 @@ public:
virtual QbsProject *project() const;
const qbs::Project qbsProject() const;
const qbs::ProjectData qbsProjectData() const;
const qbs::ProjectData qbsProjectData() const { return m_projectData; }
bool showInSimpleTree() const;
@@ -182,6 +182,7 @@ private:
QbsProjectNode *findProjectNode(const QString &name);
static QIcon m_projectIcon;
qbs::ProjectData m_projectData;
};
// --------------------------------------------------------------------