From e186df1ba3a63180b58a5254b93d90d33384136a Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 9 Oct 2019 16:24:47 +0200 Subject: [PATCH] CMake: Properly reset CMakeTool on file path change Fixes: QTCREATORBUG-18530 Change-Id: I46842aeb4bcfc2ae1267a485fd454b888cd1a885 Reviewed-by: Tobias Hunger --- src/plugins/cmakeprojectmanager/cmaketool.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmaketool.cpp b/src/plugins/cmakeprojectmanager/cmaketool.cpp index 0ed1d505133..361e0acd889 100644 --- a/src/plugins/cmakeprojectmanager/cmaketool.cpp +++ b/src/plugins/cmakeprojectmanager/cmaketool.cpp @@ -160,8 +160,7 @@ void CMakeTool::setFilePath(const Utils::FilePath &executable) if (m_executable == executable) return; - m_introspection->m_didRun = false; - m_introspection->m_didAttemptToRun = false; + m_introspection = std::make_unique(); m_executable = executable; CMakeToolManager::notifyAboutUpdate(this);