When an exception/breakpoint is hit, activate...

...the team window. Resolves #9797.
This commit is contained in:
Rene Gollent
2013-05-27 22:01:17 -04:00
parent 0c9bc63e5c
commit a6543e68c0
@@ -1290,9 +1290,16 @@ TeamWindow::_HandleThreadStateChanged(thread_id threadID)
} }
// Switch to the threads tab view when the thread has stopped. // Switch to the threads tab view when the thread has stopped.
if (thread->State() == THREAD_STATE_STOPPED) if (thread->State() == THREAD_STATE_STOPPED) {
fTabView->Select(MAIN_TAB_INDEX_THREADS); fTabView->Select(MAIN_TAB_INDEX_THREADS);
// if we hit a breakpoint or exception, raise the window to the
// foreground, since if this occurs while e.g. debugging a GUI
// app, it might not be immediately obvious that such an event
// occurred as the app may simply appear to hang.
Activate();
}
_UpdateRunButtons(); _UpdateRunButtons();
} }