Browse Source

Fix url from command line not working when supposed to open a new window

master
boisso 7 years ago
parent
commit
2824903d9b
  1. 5
      k-meleon/HiddenWnd.cpp

5
k-meleon/HiddenWnd.cpp

@ -222,7 +222,10 @@ BOOL CHiddenWnd::ShowBrowser(LPTSTR URI, BOOL webapp, BOOL atStart) {
CBrowserGlue* glue = browser->GetActiveView()->GetBrowserGlue();
if (glue) {
wrapper = glue->ReuseWindow(openmode == 1);
if (!wrapper) browser = theApp.CreateNewBrowserFrame(); //XXXXXX
if (!wrapper) {
browser = theApp.CreateNewBrowserFrame(); //XXXXXX
wrapper = browser->GetActiveView()->GetBrowserWrapper();
}
}
}
}

Loading…
Cancel
Save