CMake: Do not auto-run cmake if that was disabled

Do not run cmake on file changes if that was disabled in the CMakeTool.

Task-number: QTCREATORBUG-17232
Change-Id: I478161aebe353ddc47e24dd8a7f2cec54822e7d0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2016-11-08 13:57:10 +01:00
parent c07c4eb068
commit f33c6210cb

View File

@@ -740,7 +740,8 @@ void BuildDirManager::checkConfiguration()
void BuildDirManager::handleDocumentSaves(Core::IDocument *document)
{
if (!m_cmakeFiles.contains(document->filePath()))
CMakeTool *tool = CMakeKitInformation::cmakeTool(m_buildConfiguration->target()->kit());
if (!m_cmakeFiles.contains(document->filePath()) || !tool || !tool->isAutoRun())
return;
m_reparseTimer.start(100);