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.
This commit is contained in:
Rene Gollent 2016-04-25 21:54:35 -04:00
parent 61f0bf59fb
commit ef969bcb59

View File

@ -178,7 +178,10 @@ GraphicalUserInterface::Init(Team* team, UserInterfaceListener* listener)
void
GraphicalUserInterface::Show()
{
fTeamWindow->Show();
if (fTeamWindow->IsHidden())
fTeamWindow->Show();
else
fTeamWindow->Activate();
}