aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorSalanto <62221668+Salanto@users.noreply.github.com>2025-05-08 21:21:37 +0200
committerGitHub <noreply@github.com>2025-05-08 14:21:37 -0500
commit4db979187386326df64b9359b8de5e90468f7fc3 (patch)
tree802d5654730a20bf4ebfb12d38b26b5f4caac192 /src/courtroom.cpp
parentcde34538dc6045223c965958535218a38d22b2ee (diff)
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 <Tukz@gmx.de>
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp2
1 files changed, 2 insertions, 0 deletions
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();