Fix Web+ for AboutBox API changes.
This commit is contained in:
parent
df2257de36
commit
df3b8173ee
@ -93,11 +93,9 @@ BrowserApp::~BrowserApp()
|
||||
void
|
||||
BrowserApp::AboutRequested()
|
||||
{
|
||||
bool needsInit;
|
||||
BAboutWindow window = BAboutWindow::GetWindow(kApplicationName,
|
||||
kApplicationSignature, &needsInit);
|
||||
BAboutWindow window = new BAboutWindow(kApplicationName,
|
||||
kApplicationSignature);
|
||||
|
||||
if (needsInit) {
|
||||
// create the about window
|
||||
|
||||
const char* authors[] = {
|
||||
@ -120,11 +118,8 @@ BrowserApp::AboutRequested()
|
||||
window->AddCopyright(2007, "Haiku, Inc.");
|
||||
window->AddAuthors(authors);
|
||||
window->AddExtraInfo(aboutText.String());
|
||||
}
|
||||
|
||||
if (window->IsHidden())
|
||||
window->Show();
|
||||
window->Activate();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user