Extend MSG_SHOW_INSPECTOR_WINDOW to allow specifying an initial address.

This commit is contained in:
Rene Gollent
2012-07-15 14:34:33 -04:00
parent 0712121cdb
commit 544a66de68
@@ -218,12 +218,10 @@ TeamWindow::MessageReceived(BMessage* message)
{ {
if (fInspectorWindow) { if (fInspectorWindow) {
fInspectorWindow->Activate(true); fInspectorWindow->Activate(true);
break; } else {
}
try { try {
fInspectorWindow = InspectorWindow::Create(fTeam, fListener, fInspectorWindow = InspectorWindow::Create(fTeam,
this); fListener, this);
if (fInspectorWindow != NULL) { if (fInspectorWindow != NULL) {
BMessage settings; BMessage settings;
fInspectorWindow->LoadSettings(fUISettings); fInspectorWindow->LoadSettings(fUISettings);
@@ -232,6 +230,14 @@ TeamWindow::MessageReceived(BMessage* message)
} catch (...) { } catch (...) {
// TODO: notify user // TODO: notify user
} }
}
target_addr_t address;
if (message->FindUInt64("address", &address) == B_OK) {
BMessage addressMessage(MSG_INSPECT_ADDRESS);
addressMessage.AddUInt64("address", address);
fInspectorWindow->PostMessage(&addressMessage);
}
break; break;
} }
case MSG_INSPECTOR_WINDOW_CLOSED: case MSG_INSPECTOR_WINDOW_CLOSED: