Extend MSG_SHOW_INSPECTOR_WINDOW to allow specifying an initial address.
This commit is contained in:
parent
0712121cdb
commit
544a66de68
@ -218,20 +218,26 @@ TeamWindow::MessageReceived(BMessage* message)
|
||||
{
|
||||
if (fInspectorWindow) {
|
||||
fInspectorWindow->Activate(true);
|
||||
break;
|
||||
} else {
|
||||
try {
|
||||
fInspectorWindow = InspectorWindow::Create(fTeam,
|
||||
fListener, this);
|
||||
if (fInspectorWindow != NULL) {
|
||||
BMessage settings;
|
||||
fInspectorWindow->LoadSettings(fUISettings);
|
||||
fInspectorWindow->Show();
|
||||
}
|
||||
} catch (...) {
|
||||
// TODO: notify user
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
fInspectorWindow = InspectorWindow::Create(fTeam, fListener,
|
||||
this);
|
||||
if (fInspectorWindow != NULL) {
|
||||
BMessage settings;
|
||||
fInspectorWindow->LoadSettings(fUISettings);
|
||||
fInspectorWindow->Show();
|
||||
}
|
||||
} catch (...) {
|
||||
// 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;
|
||||
}
|
||||
case MSG_INSPECTOR_WINDOW_CLOSED:
|
||||
|
Loading…
Reference in New Issue
Block a user