Fix URL + FORCE issue #2635

This commit is contained in:
Chris Young 2019-03-02 23:30:38 +00:00
parent 61891ada50
commit 13a7004e6b

View File

@ -1037,6 +1037,10 @@ static void gui_init2(int argc, char** argv)
(nsoption_bool(startup_no_window) == false)) (nsoption_bool(startup_no_window) == false))
ami_openscreenfirst(); ami_openscreenfirst();
if(cli_force == true) {
notalreadyrunning = TRUE;
}
if(temp_homepage_url && notalreadyrunning) { if(temp_homepage_url && notalreadyrunning) {
error = nsurl_create(temp_homepage_url, &url); error = nsurl_create(temp_homepage_url, &url);
if (error == NSERROR_OK) { if (error == NSERROR_OK) {
@ -1054,10 +1058,6 @@ static void gui_init2(int argc, char** argv)
temp_homepage_url = NULL; temp_homepage_url = NULL;
} }
if(cli_force == true) {
notalreadyrunning = TRUE;
}
if(argc == 0) { // WB if(argc == 0) { // WB
struct WBStartup *WBenchMsg = (struct WBStartup *)argv; struct WBStartup *WBenchMsg = (struct WBStartup *)argv;
struct WBArg *wbarg; struct WBArg *wbarg;