b client sim base

fix close event always executing
This commit is contained in:
2026-02-14 14:32:31 +01:00
parent 66ac531cd5
commit 935c1d4ac6
+1 -1
View File
@@ -51,10 +51,10 @@ void Simulator_base::showEvent(QShowEvent *event)
void Simulator_base::closeEvent(QCloseEvent *event) void Simulator_base::closeEvent(QCloseEvent *event)
{ {
QWidget::closeEvent(event);
if (m_open == true) if (m_open == true)
{ {
SPDLOG_DEBUG("Disconnecting callbacks"); SPDLOG_DEBUG("Disconnecting callbacks");
QWidget::closeEvent(event);
m_timer_update->stop(); m_timer_update->stop();
disconnect(m_web_socket, nullptr, nullptr, nullptr); disconnect(m_web_socket, nullptr, nullptr, nullptr);
m_open = false; m_open = false;