diff --git a/client/portgroup.cpp b/client/portgroup.cpp index c609d3f..404e942 100644 --- a/client/portgroup.cpp +++ b/client/portgroup.cpp @@ -200,6 +200,19 @@ void PortGroup::processVersionCompatibility(PbRpcController *controller) qPrintable(QString::fromStdString(verCompat->notes()))); compat = kIncompatible; emit portGroupDataChanged(mPortGroupId); + + QMessageBox msgBox; + msgBox.setIcon(QMessageBox::Warning); + msgBox.setTextFormat(Qt::RichText); + msgBox.setStyleSheet("messagebox-text-interaction-flags: 5"); + msgBox.setText(tr("The Drone agent at %1:%2 is incompatible with this " + "Ostinato version - %3") + .arg(serverName()) + .arg(int(serverPort())) + .arg(version)); + msgBox.setInformativeText(QString::fromStdString(verCompat->notes())); + msgBox.exec(); + goto _error_exit; } diff --git a/server/myservice.cpp b/server/myservice.cpp index 6ba4f15..0784830 100644 --- a/server/myservice.cpp +++ b/server/myservice.cpp @@ -590,7 +590,7 @@ void MyService::checkVersion(::google::protobuf::RpcController* controller, } else { response->set_result(OstProto::VersionCompatibility::kIncompatible); - response->set_notes(QString("Drone needs client version %1.%2.x") + response->set_notes(QString("Drone needs controller version %1.%2.x") .arg(my[0], my[1]).toStdString()); static_cast(controller)->TriggerDisconnect(); }