TeamDebugger: minor cleanups.

- On team exit, close the debug interface.
- When receiving a restart request via the listener, save settings
before dispatching it.
This commit is contained in:
Rene Gollent 2013-05-30 21:11:21 -04:00
parent 05d98101be
commit 6443c430b2

View File

@ -736,6 +736,7 @@ TeamDebugger::MessageReceived(BMessage* message)
if (fCommandLineArgc == 0)
break;
_SaveSettings();
fListener->TeamDebuggerRestartRequested(this);
break;
}
@ -1270,6 +1271,8 @@ bool
TeamDebugger::_HandleTeamDeleted(TeamDeletedEvent* event)
{
char message[64];
fDebuggerInterface->Close(false);
snprintf(message, sizeof(message), "Team %" B_PRId32 " has terminated. ",
event->Team());