From ef969bcb59a8de19a0bce02b9d96f4c9a45c1c3a Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Mon, 25 Apr 2016 21:54:35 -0400 Subject: [PATCH] Debugger: Fix incorrect behavior when asking to activat. GraphicalUserInterface: - The Show() method now checks if the team window is already visible. If it is, we instead call Activate() to focus it. Fixes the problem that attempting to attach to a team which we already had a running team debugger for would appear to do nothing, rather than focusing that window. --- .../debugger/user_interface/gui/GraphicalUserInterface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/debugger/user_interface/gui/GraphicalUserInterface.cpp b/src/apps/debugger/user_interface/gui/GraphicalUserInterface.cpp index 68a9e16134..1ff85e9fa8 100644 --- a/src/apps/debugger/user_interface/gui/GraphicalUserInterface.cpp +++ b/src/apps/debugger/user_interface/gui/GraphicalUserInterface.cpp @@ -178,7 +178,10 @@ GraphicalUserInterface::Init(Team* team, UserInterfaceListener* listener) void GraphicalUserInterface::Show() { - fTeamWindow->Show(); + if (fTeamWindow->IsHidden()) + fTeamWindow->Show(); + else + fTeamWindow->Activate(); }