Changeset 4339 for trunk/gsdl/src/w32server/fnord.cpp
- Timestamp:
- 2003-05-27T10:58:48+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/w32server/fnord.cpp
r4292 r4339 340 340 enterlib_libaccessnum = libaccessnum; 341 341 342 // do a quick check to make sure we're using netscape when 343 // we should be (it might have been just installed) 344 if (netscapeneeded) gsdl_check_browser_settings (netscapeneeded); 345 346 char *cstr_url = url.getcstr(); 347 if (strlen (startbrowserdir) <= 0) { 348 res = startbrowser (cstr_url, gsdl_browser_exe, NULL); 349 350 } else res = startbrowser (cstr_url, gsdl_browser_exe, startbrowserdir); 351 352 delete cstr_url; 353 342 if (gsdl_start_browser) { 343 344 // do a quick check to make sure we're using netscape when 345 // we should be (it might have been just installed) 346 if (netscapeneeded) gsdl_check_browser_settings (netscapeneeded); 347 348 char *cstr_url = url.getcstr(); 349 if (strlen (startbrowserdir) <= 0) { 350 res = startbrowser (cstr_url, gsdl_browser_exe, NULL); 351 352 } else res = startbrowser (cstr_url, gsdl_browser_exe, startbrowserdir); 353 354 delete cstr_url; 355 356 } else { 357 return 1; 358 } 354 359 } 355 360 … … 496 501 if ((GoButton != NULL) && ((HWND)LParam == GoButton)) { 497 502 // attempt to start a browser 503 gsdl_start_browser = 1; 498 504 if (enter_library (Window) && !gsdl_show_console) 499 505 ShowWindow(Window,SW_MINIMIZE); … … 974 980 975 981 // attempt to start a browser 976 if (gsdl_show_console ) infostring = strnothing;982 if (gsdl_show_console || !gsdl_start_browser) infostring = strnothing; 977 983 else infostring = strsb; 978 984 paint_window (pdc, windowRect); … … 1030 1036 // do check 1031 1037 lastcheck = GetTickCount(); 1032 if ( browserrunning(gsdl_browser_exe) == NO_ERROR) {1038 if (gsdl_start_browser && browserrunning(gsdl_browser_exe) == NO_ERROR) { 1033 1039 // we were able to connect to a browser 1034 1040 seenbrowser = 1;
Note:
See TracChangeset
for help on using the changeset viewer.