From 2490e97ea00861093696572e111dd224f12b78a4 Mon Sep 17 00:00:00 2001 From: BruebachL <44814898+BruebachL@users.noreply.github.com> Date: Sat, 13 Sep 2025 12:44:46 +0200 Subject: [PATCH] Switch to replay tab if already open. (#6130) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Took 11 minutes Co-authored-by: Lukas BrĂ¼bach --- cockatrice/src/client/tabs/tab_supervisor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cockatrice/src/client/tabs/tab_supervisor.cpp b/cockatrice/src/client/tabs/tab_supervisor.cpp index 3fb696954..5bba9bb43 100644 --- a/cockatrice/src/client/tabs/tab_supervisor.cpp +++ b/cockatrice/src/client/tabs/tab_supervisor.cpp @@ -601,6 +601,8 @@ void TabSupervisor::actTabReplays(bool checked) setCurrentWidget(tabReplays); } else if (!checked && tabReplays) { tabReplays->closeRequest(); + } else if (checked && tabReplays) { + setCurrentWidget(tabReplays); } }