From d07b28258764618ef17b123422fd728fa885bb9a Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Fri, 17 Oct 2025 20:46:42 +0200 Subject: [PATCH] client fix title not updating --- client/simulator_base.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/simulator_base.cpp b/client/simulator_base.cpp index 0e1ce57..9fa14d6 100644 --- a/client/simulator_base.cpp +++ b/client/simulator_base.cpp @@ -11,10 +11,6 @@ Simulator_base::Simulator_base(QString name, Web_socket_wrapper *web_socket, QWi : QMainWindow{parent}, m_timer_update(new QTimer()), m_error(new QMessageBox(this)), m_web_socket(web_socket), m_name(name) { - if (windowTitle() != m_name) - { - setWindowTitle(m_name); - } this->setWindowState(Qt::WindowMaximized); m_ui_lookup.reserve(40); @@ -39,6 +35,7 @@ QString Simulator_base::name() const void Simulator_base::showEvent(QShowEvent *event) { QWidget::showEvent(event); + setWindowTitle(m_name); SPDLOG_DEBUG("Connecting callbacks"); m_first_load = true;