Select the new tab when creating it via the menu.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@163 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-02-21 13:43:27 +00:00
parent fafcdf7cd1
commit 714edff6e1

View File

@ -110,6 +110,7 @@ LauncherWindow::LauncherWindow(BRect frame, const BMessenger& downloadListener,
BMessage* newTabMessage = new BMessage(NEW_TAB);
newTabMessage->AddString("url", "");
newTabMessage->AddPointer("window", this);
newTabMessage->AddBool("select", true);
newItem = new BMenuItem("New tab", newTabMessage, 'T');
menu->AddItem(newItem);
newItem->SetTarget(be_app);