Changeset 404 for Common


Ignore:
Timestamp:
Aug 13, 2012, 10:03:31 AM (12 years ago)
Author:
chronos
Message:
Location:
Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Common/UCommon.pas

    r364 r404  
    77uses
    88  {$IFDEF Windows}Windows,{$ENDIF}
    9   Classes, SysUtils, StrUtils, Dialogs, Process,
     9  Classes, SysUtils, StrUtils, Dialogs, Process, LCLIntf,
    1010  FileUtil; //, ShFolder, ShellAPI;
    1111
     
    404404  Browser, Params: string;
    405405begin
    406   try
     406  OpenURL(URL);
     407  {try
    407408    Process := TProcess.Create(nil);
    408409    Browser := '';
     
    415416  finally
    416417    Process.Free;
    417   end;
     418  end;}
    418419end;
    419420
  • Common/URegistry.pas

    r400 r404  
    3434      DefaultValue: Double): Double;
    3535    function DeleteKeyRecursive(const Key: string): Boolean;
     36    function OpenKey(const Key: string; CanCreate: Boolean): Boolean;
    3637  end;
    3738
     
    9798end;
    9899
     100function TRegistryEx.OpenKey(const Key: string; CanCreate: Boolean): Boolean;
     101begin
     102  {$IFDEF Linux}
     103  CloseKey;
     104  {$ENDIF}
     105  Result := inherited OpenKey(Key, CanCreate);
     106end;
     107
    99108function TRegistryEx.ReadBoolWithDefault(const Name: string;
    100109  DefaultValue: Boolean): Boolean;
Note: See TracChangeset for help on using the changeset viewer.