Session: Update SessionNode when Project tree changes

This moves ownership of the project's root node from the
project into the project tree!

Change-Id: I84eba884bd63b44e56c75023d8bf12caf5cc2833
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2017-03-03 14:40:02 +01:00
parent 707990632c
commit 71a5aee36f
6 changed files with 36 additions and 13 deletions

View File

@@ -134,7 +134,6 @@ CMakeProject::~CMakeProject()
future.waitForFinished();
}
delete m_cppCodeModelUpdater;
setRootProjectNode(nullptr);
qDeleteAll(m_extraCompilers);
qDeleteAll(m_allFiles);
}