From 4db979187386326df64b9359b8de5e90468f7fc3 Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Thu, 8 May 2025 21:21:37 +0200 Subject: Close punishment dialog when the user leaves (#1097) * Close punishment dialog when the user leaves Prevents silly moments where the wrong person gets banned/kicked * Fix formatting --------- Co-authored-by: stonedDiscord --- src/courtroom.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/courtroom.cpp') diff --git a/src/courtroom.cpp b/src/courtroom.cpp index ca1b810f..7646794d 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -520,6 +520,8 @@ Courtroom::Courtroom(AOApplication *p_ao_app) connect(m_screenslide_timer, &kal::ScreenSlideTimer::finished, this, &Courtroom::post_transition_cleanup); + connect(ui_player_list, &PlayerListWidget::notify, this, [this](const QString &message) { append_server_chatmessage("CLIENT", message, "1"); }); + set_widgets(); set_char_select(); -- cgit