aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/cmaketool.cpp
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2019-10-09 16:24:47 +0200
committerTobias Hunger <tobias.hunger@qt.io>2019-10-09 14:27:57 +0000
commite186df1ba3a63180b58a5254b93d90d33384136a (patch)
tree5fcb3d22f71ed0606370205c7b7187cb5e5bb9d1 /src/plugins/cmakeprojectmanager/cmaketool.cpp
parentc5fe523774d0682dc3ee15fb1ad780bf1cff74be (diff)
CMake: Properly reset CMakeTool on file path change
Fixes: QTCREATORBUG-18530 Change-Id: I46842aeb4bcfc2ae1267a485fd454b888cd1a885 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmaketool.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmaketool.cpp3
1 files changed, 1 insertions, 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<Internal::IntrospectionData>();
m_executable = executable;
CMakeToolManager::notifyAboutUpdate(this);