Commit 7f597151 authored by hjk's avatar hjk

QbsProjectManager: Identify product nodes properly

Change-Id: I6922e2fb72c693be931fefb57f9686b727ad5bb1
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
parent 0073decb
......@@ -259,7 +259,7 @@ void QbsProjectManagerPlugin::updateContextActions()
bool isFile = m_selectedProject && m_selectedNode && (m_selectedNode->nodeType() == NodeType::File);
bool isProduct = m_selectedProject
&& m_selectedNode
&& dynamic_cast<QbsProductNode *>(m_selectedNode->parentProjectNode());
&& dynamic_cast<QbsProductNode *>(m_selectedNode);
QbsProjectNode *subproject = dynamic_cast<QbsProjectNode *>(m_selectedNode);
bool isSubproject = m_selectedProject && subproject && subproject != m_selectedProject->rootProjectNode();
......
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