QbsProjectManager: Relax qbs API version check

We have recently bumped the API compatibility version in qbs master.
However, Qt Creator did not make use of the removed feature and can
therefore deal with the old and the new version.

Change-Id: I40b2d8c9ef16993617b346887d4de5a936e8ec54
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Christian Kandeler
2020-01-23 17:24:01 +01:00
parent c6a7aed17e
commit 5d53dbd501

View File

@@ -470,7 +470,7 @@ void QbsSession::handlePacket(const QJsonObject &packet)
const QString type = packet.value("type").toString(); const QString type = packet.value("type").toString();
if (type == "hello") { if (type == "hello") {
QTC_CHECK(d->state == State::Initializing); QTC_CHECK(d->state == State::Initializing);
if (packet.value("api-compat-level").toInt() != 1) { if (packet.value("api-compat-level").toInt() > 2) {
setError(Error::VersionMismatch); setError(Error::VersionMismatch);
return; return;
} }