CMake: Break loop in error handling

Block access to the BuildDirManager while one of its errors is
processed. This prevents more errors being raised as part of
error handling, which can trigger a loop.

Task-number: QTCREATORBUG-17869
Change-Id: Ic6f8d9a3c3b4e63f27260c40f27ab09d20b62b3e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2017-03-24 19:35:13 +01:00
parent 17b89cd422
commit 3a20cec60a
2 changed files with 26 additions and 2 deletions

View File

@@ -86,6 +86,7 @@ signals:
private:
void emitDataAvailable();
void emitErrorOccured(const QString &message) const;
void checkConfiguration();
const Utils::FileName workDirectory() const;
@@ -109,6 +110,7 @@ private:
std::unique_ptr<BuildDirReader> m_reader;
mutable QList<CMakeBuildTarget> m_buildTargets;
mutable bool m_isHandlingError = false;
};
} // namespace Internal