From 4fdffb8889f4c882bd8687891bb7b6b5325d8996 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Mon, 16 Sep 2024 17:24:30 +0200 Subject: [PATCH] mainwindow add extra text message in label if server is unavailable --- Qt/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Qt/mainwindow.cpp b/Qt/mainwindow.cpp index 8aa5af9..b1a8a52 100644 --- a/Qt/mainwindow.cpp +++ b/Qt/mainwindow.cpp @@ -39,7 +39,7 @@ void MainWindow::setup_cb(void) { connect(m_web_socket, &Web_socket_wrapper::on_command_cb, this, [=](json& j){on_cmd_cb(j);}); connect(m_web_socket, &Web_socket_wrapper::on_connected, this, [=]{m_web_socket->send_command(Web_socket_wrapper::Command::get_simulators);}); - connect(m_web_socket, &Web_socket_wrapper::on_closed, this, [=]{m_error_dialog->open();}); + connect(m_web_socket, &Web_socket_wrapper::on_closed, this, [=]{m_error_dialog->open(); ui->connection->setText("Could not connect to the server");}); } void MainWindow::showEvent( QShowEvent* event )