Qbs: Avoid crash when build changes the project tree

Change-Id: I52fe5bb49f762e8837c5ea825adb20650316ff7b
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Tobias Hunger
2014-06-24 16:10:18 +02:00
parent 21cccaa1c9
commit d4c62539fd

View File

@@ -333,6 +333,8 @@ void QbsProjectManagerPlugin::buildStateChanged(ProjectExplorer::Project *projec
if (project == m_selectedProject)
updateContextActions();
m_editorNode = currentEditorNode();
m_editorProject = currentEditorProject();
if (project == m_editorProject)
updateBuildActions();
}