BApplication: remove AboutRequested implementation
The Be Book says this is a hook method, so the default behavior should be to do nothing (didn't test BeOS, my install is currently broken). Showing an alert with just the application thread name is less than helpful anyway, and this was causing crashes. Fixes #5554.
This commit is contained in:
parent
03ad73fc87
commit
c254f99c36
@ -730,12 +730,7 @@ BApplication::RefsReceived(BMessage* message)
|
||||
void
|
||||
BApplication::AboutRequested()
|
||||
{
|
||||
thread_info info;
|
||||
if (get_thread_info(Thread(), &info) == B_OK) {
|
||||
BAlert* alert = new BAlert("_about_", info.name, "OK");
|
||||
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
|
||||
alert->Go(NULL);
|
||||
}
|
||||
// supposed to be implemented by subclasses
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user