From 49ded19fe9b0ac1dbef6750b38d2e5198bc8696c Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Fri, 11 Apr 2025 13:14:21 +0200 Subject: [PATCH] client set window title to sim name --- client/simulator_base.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/simulator_base.cpp b/client/simulator_base.cpp index c08e458..b391f9b 100644 --- a/client/simulator_base.cpp +++ b/client/simulator_base.cpp @@ -6,6 +6,10 @@ Simulator_base::Simulator_base(QString sim_name, Web_socket_wrapper *web_socket, : QMainWindow{parent}, m_error_dialog(new NetworkError(this)), m_timer_update(new QTimer()), m_web_socket(web_socket), m_sim_name(sim_name) { + if (windowTitle() != m_sim_name) + { + setWindowTitle(m_sim_name); + } m_error_dialog->set_error("Connection timed out\nCheck if the server is running"); m_ui_lookup.reserve(40); }