forked from qt-creator/qt-creator
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:
@@ -470,7 +470,7 @@ void QbsSession::handlePacket(const QJsonObject &packet)
|
||||
const QString type = packet.value("type").toString();
|
||||
if (type == "hello") {
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user