CMake: Do not try to update project data when an error occurred

Do not try to update project data when an error occurred in server-mode.

Change-Id: I6a1cf4b6e79fd6ddf5329195861f34cd7f1ca44d
Reviewed-by: Florian Apolloner <florian@apolloner.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Tobias Hunger
2017-04-07 17:39:45 +02:00
committed by Florian Apolloner
parent c2483427f1
commit 598100c765

View File

@@ -149,10 +149,7 @@ void CMakeBuildConfiguration::ctor()
emit dataAvailable(); emit dataAvailable();
}); });
connect(m_buildDirManager.get(), &BuildDirManager::errorOccured, connect(m_buildDirManager.get(), &BuildDirManager::errorOccured,
this, [this, project](const QString &msg) { this, &CMakeBuildConfiguration::setError);
project->updateProjectData(this);
setError(msg);
});
connect(m_buildDirManager.get(), &BuildDirManager::configurationStarted, connect(m_buildDirManager.get(), &BuildDirManager::configurationStarted,
this, [this, project]() { this, [this, project]() {
project->handleParsingStarted(); project->handleParsingStarted();