Fix loading links from command line args.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@83 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
parent
a30b7161b8
commit
b067486b74
@ -77,8 +77,14 @@ void LauncherApp::AboutRequested()
|
||||
void LauncherApp::ArgvReceived(int32 argc, char** argv)
|
||||
{
|
||||
for (int i = 1; i < argc; i++) {
|
||||
BEntry entry(argv[i], true);
|
||||
if (!entry.Exists())
|
||||
continue;
|
||||
BPath path;
|
||||
if (entry.GetPath(&path) != B_OK)
|
||||
continue;
|
||||
BMessage message(LOAD_AT_STARTING);
|
||||
message.AddString("url", argv[i]);
|
||||
message.AddString("url", path.Path());
|
||||
message.AddBool("new window", m_initialized || i > 1);
|
||||
PostMessage(&message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user