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:
parent
05d98101be
commit
6443c430b2
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user