Changeset 108


Ignore:
Timestamp:
Apr 20, 2007, 8:29:53 PM (18 years ago)
Author:
RBRi
Message:

fix for bug #19

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/WebBrowserUnit.pas

    r92 r108  
    4848
    4949
     50  Function GetDefaultParameters : String;
     51  begin
     52    Result := GetUserProfileString(PROFILE_KEY_WPURLDEFAULTSETTINGS, 'DefaultParameters', '');
     53  end;
     54
     55
     56
    5057  Procedure LaunchURL(const aURL: String);
    5158  var
    5259    tmpBrowserPath : String;
    5360    tmpBrowserWorkingDir : String;
     61    tmpBrowserParameters : String;
    5462  begin
    5563    tmpBrowserPath := GetDefaultBrowserPath;
    5664    tmpBrowserWorkingDir := GetDefaultBrowserWorkingDir;
     65    tmpBrowserParameters := GetDefaultParameters;
     66
    5767    if tmpBrowserPath = '' then
    5868    begin
     
    6777    ChDir(RemoveRightDirectorySeparator(tmpBrowserWorkingDir));
    6878
    69     LaunchProgram(tmpBrowserPath, aURL, tmpBrowserWorkingDir);
     79    LaunchProgram(tmpBrowserPath, tmpBrowserParameters + ' ' + aURL, tmpBrowserWorkingDir);
    7080  end;
    7181
Note: See TracChangeset for help on using the changeset viewer.