Skip to content

Commit

Permalink
Fixed a bug in the settings with Paths
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPeel committed Aug 31, 2014
1 parent d0ba25e commit 0ea0e5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Projects/Simba/newsimbasettings.pas
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ TPathSetting = class(TFileSetting)
private
procedure SetValue(val: string);
public
function GetDefValue(val: string): string; virtual;

property Value: string read GetValue write SetValue;
end;

Expand Down Expand Up @@ -638,6 +640,14 @@ procedure TFileSetting.SetValue(val: string);
OnChange(Self);
end;

function TPathSetting.GetDefValue(val: String): String;
begin
if (not (FValueSet)) then
Value := val;

Result := Value;
end;

procedure TPathSetting.SetValue(val: string);
begin
{$IFNDEF NOTPORTABLE}
Expand Down

0 comments on commit 0ea0e5d

Please sign in to comment.