Commit 906e81c7 authored by Tobias Hunger's avatar Tobias Hunger

CMake: Delete watched files when closing a project

Fixes a crash when re-opening a cmake project.

Change-Id: I5fc747f19787594964fe55c19e29e944c4a5092d
Reviewed-by: default avatarBenjamin Zeller <benjamin.zeller@canonical.com>
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent 9c333feb
...@@ -105,6 +105,7 @@ CMakeProject::~CMakeProject() ...@@ -105,6 +105,7 @@ CMakeProject::~CMakeProject()
{ {
setRootProjectNode(nullptr); setRootProjectNode(nullptr);
m_codeModelFuture.cancel(); m_codeModelFuture.cancel();
qDeleteAll(m_watchedFiles);
qDeleteAll(m_extraCompilers); qDeleteAll(m_extraCompilers);
} }
......
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