From 6443c430b220a3bcf70b2b648514ec35422a5ab6 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Thu, 30 May 2013 21:11:21 -0400 Subject: [PATCH] TeamDebugger: minor cleanups. - On team exit, close the debug interface. - When receiving a restart request via the listener, save settings before dispatching it. --- src/apps/debugger/controllers/TeamDebugger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/debugger/controllers/TeamDebugger.cpp b/src/apps/debugger/controllers/TeamDebugger.cpp index 03c4f2c782..9c334dca7d 100644 --- a/src/apps/debugger/controllers/TeamDebugger.cpp +++ b/src/apps/debugger/controllers/TeamDebugger.cpp @@ -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());