mirror of https://gitlab.com/basile.b/dexed.git
fixed possible future bugs when multiple project will be implemented
This commit is contained in:
parent
084a476e5f
commit
76c236ce4e
|
@ -79,6 +79,8 @@ end;
|
||||||
|
|
||||||
procedure TCECdbWidget.projClosing(const aProject: TCEProject);
|
procedure TCECdbWidget.projClosing(const aProject: TCEProject);
|
||||||
begin
|
begin
|
||||||
|
if fProject <> aProject then
|
||||||
|
exit;
|
||||||
fProject := nil;
|
fProject := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -89,7 +91,6 @@ end;
|
||||||
|
|
||||||
procedure TCECdbWidget.projChanged(const aProject: TCEProject);
|
procedure TCECdbWidget.projChanged(const aProject: TCEProject);
|
||||||
begin
|
begin
|
||||||
fProject := aProject;
|
|
||||||
end;
|
end;
|
||||||
{$ENDREGION --------------------------------------------------------------------}
|
{$ENDREGION --------------------------------------------------------------------}
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,8 @@ end;
|
||||||
|
|
||||||
procedure TCEEditorWidget.projClosing(const aProject: TCEProject);
|
procedure TCEEditorWidget.projClosing(const aProject: TCEProject);
|
||||||
begin
|
begin
|
||||||
if fProj <> aProject then exit;
|
if fProj <> aProject then
|
||||||
|
exit;
|
||||||
fProj := nil;
|
fProj := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -159,6 +160,8 @@ end;
|
||||||
|
|
||||||
procedure TCEEditorWidget.projChanged(const aProject: TCEProject);
|
procedure TCEEditorWidget.projChanged(const aProject: TCEProject);
|
||||||
begin
|
begin
|
||||||
|
if fProj <> aProject then
|
||||||
|
exit;
|
||||||
fProj := aProject;
|
fProj := aProject;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
@ -70,13 +70,18 @@ end;
|
||||||
|
|
||||||
procedure TCEProjectConfigurationWidget.projClosing(const aProject: TCEProject);
|
procedure TCEProjectConfigurationWidget.projClosing(const aProject: TCEProject);
|
||||||
begin
|
begin
|
||||||
|
if fProj <> aProject then
|
||||||
|
exit;
|
||||||
Grid.TIObject := nil;
|
Grid.TIObject := nil;
|
||||||
Grid.ItemIndex := -1;
|
Grid.ItemIndex := -1;
|
||||||
|
self.selConf.Clear;
|
||||||
fProj := nil;
|
fProj := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEProjectConfigurationWidget.projChanged(const aProject: TCEProject);
|
procedure TCEProjectConfigurationWidget.projChanged(const aProject: TCEProject);
|
||||||
begin
|
begin
|
||||||
|
if fProj <> aProject then
|
||||||
|
exit;
|
||||||
beginUpdateByEvent;
|
beginUpdateByEvent;
|
||||||
fProj := aProject;
|
fProj := aProject;
|
||||||
endUpdateByEvent;
|
endUpdateByEvent;
|
||||||
|
|
|
@ -129,6 +129,8 @@ end;
|
||||||
|
|
||||||
procedure TCEProjectInspectWidget.projClosing(const aProject: TCEProject);
|
procedure TCEProjectInspectWidget.projClosing(const aProject: TCEProject);
|
||||||
begin
|
begin
|
||||||
|
if fProject <> aProject then
|
||||||
|
exit;
|
||||||
fProject := nil;
|
fProject := nil;
|
||||||
UpdateByEvent;
|
UpdateByEvent;
|
||||||
end;
|
end;
|
||||||
|
@ -141,7 +143,8 @@ end;
|
||||||
|
|
||||||
procedure TCEProjectInspectWidget.projChanged(const aProject: TCEProject);
|
procedure TCEProjectInspectWidget.projChanged(const aProject: TCEProject);
|
||||||
begin
|
begin
|
||||||
fProject := aProject;
|
if fProject <> aProject then
|
||||||
|
exit;
|
||||||
UpdateByEvent;
|
UpdateByEvent;
|
||||||
end;
|
end;
|
||||||
{$ENDREGION}
|
{$ENDREGION}
|
||||||
|
|
|
@ -266,6 +266,8 @@ end;
|
||||||
|
|
||||||
procedure TCEStaticExplorerWidget.projClosing(const aProject: TCEProject);
|
procedure TCEStaticExplorerWidget.projClosing(const aProject: TCEProject);
|
||||||
begin
|
begin
|
||||||
|
if fProj <> aProject then
|
||||||
|
exit;
|
||||||
fProj := nil;
|
fProj := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -276,7 +278,6 @@ end;
|
||||||
|
|
||||||
procedure TCEStaticExplorerWidget.projChanged(const aProject: TCEProject);
|
procedure TCEStaticExplorerWidget.projChanged(const aProject: TCEProject);
|
||||||
begin
|
begin
|
||||||
fProj := aProject;
|
|
||||||
end;
|
end;
|
||||||
{$ENDREGION}
|
{$ENDREGION}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue