Commit 6063d313 authored by Tobias Hunger's avatar Tobias Hunger

Qbs: Use m_editorProject for signal routing

Change-Id: I6a4453eabd097e81b416f706732926766c7c6c4d
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent a809ebb9
......@@ -294,8 +294,9 @@ void QbsProjectManagerPlugin::updateBuildActions()
QString subprojectName;
if (m_editorNode) {
enabled = !BuildManager::isBuilding(m_editorProject)
&& m_selectedProject && !m_selectedProject->isParsing();
enabled = m_editorProject
&& !BuildManager::isBuilding(m_editorProject)
&& !m_editorProject->isParsing();
fileName = QFileInfo(m_editorNode->path()).fileName();
fileVisible = m_editorProject && m_editorNode && qobject_cast<QbsBaseProjectNode *>(m_editorNode->projectNode());
......@@ -332,10 +333,11 @@ void QbsProjectManagerPlugin::buildStateChanged(ProjectExplorer::Project *projec
if (project == m_currentProject)
updateReparseQbsAction();
if (project == m_selectedProject) {
if (project == m_selectedProject)
updateContextActions();
if (project == m_editorProject)
updateBuildActions();
}
}
void QbsProjectManagerPlugin::parsingStateChanged()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment