ProjectExplorer: Remove Node::asSessionNode()

The only remaining uses could be removed or replaced by a
check for no parent node.

Change-Id: I13eba8ae418cf3d404bb3df7d389d72091af38d7
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2017-02-23 11:00:35 +01:00
parent 4f47a8d745
commit fd5e0a1486
3 changed files with 1 additions and 8 deletions

View File

@@ -119,7 +119,7 @@ FolderNode *Node::parentFolderNode() const
ProjectNode *Node::managingProject()
{
if (asSessionNode())
if (!m_parentFolderNode)
return nullptr;
ProjectNode *pn = parentProjectNode();
return pn ? pn : asProjectNode(); // projects manage themselves...