forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user