mirror of https://gitlab.com/basile.b/dexed.git
fix some error in #35 implementation
- wrong filename saved - AV on exit because entity not removed from list
This commit is contained in:
parent
19b15b06db
commit
fe1e1468ee
|
|
@ -369,6 +369,7 @@ type
|
|||
function optionedOptionsModified: boolean;
|
||||
public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
procedure assign(src: TPersistent); override;
|
||||
procedure assignTo(dst: TPersistent); override;
|
||||
end;
|
||||
|
|
@ -390,6 +391,12 @@ begin
|
|||
EntitiesConnector.addObserver(self);
|
||||
end;
|
||||
|
||||
destructor TCEApplicationOptions.Destroy;
|
||||
begin
|
||||
EntitiesConnector.removeObserver(self);
|
||||
inherited;
|
||||
end;
|
||||
|
||||
procedure TCEApplicationOptions.assign(src: TPersistent);
|
||||
begin
|
||||
if src = CEMainForm then
|
||||
|
|
@ -870,7 +877,7 @@ begin
|
|||
end;
|
||||
// globals opts
|
||||
fAppliOpts.assign(self);
|
||||
fAppliOpts.saveToFile(getCoeditDocPath + 'global.txt');
|
||||
fAppliOpts.saveToFile(getCoeditDocPath + 'application.txt');
|
||||
end;
|
||||
|
||||
procedure TCEMainForm.SaveDocking;
|
||||
|
|
|
|||
Loading…
Reference in New Issue