added assign to TCEPersistent shortcut

This commit is contained in:
Basile Burg 2015-05-13 05:18:50 +02:00
parent 5cd90da065
commit b7e655df41
1 changed files with 15 additions and 0 deletions

View File

@ -60,6 +60,8 @@ type
published
property shortcut: TShortCut read fShortcut write fShortcut;
property actionName: string read fActionName write fActionName;
public
procedure assign(aValue: TPersistent); override;
end;
(**
@ -213,6 +215,19 @@ type
implementation
procedure TCEPersistentShortcut.assign(aValue: TPersistent);
var
src: TCEPersistentShortcut;
begin
if aValue is TCEPersistentShortcut then
begin
src := TCEPersistentShortcut(Avalue);
fActionName := src.fActionName;
fShortcut := src.fShortcut;
end
else inherited;
end;
{$IFDEF LINUX}
constructor TCheckedAsyncProcess.Create(aOwner: TComponent);
begin