You've already forked lazarus-ccr
RxFPC: TRxCloseFormValidator call owner form event OnCloseQuery before validate
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3635 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -305,9 +305,10 @@ begin
|
|||||||
begin
|
begin
|
||||||
if TForm(Sender).ModalResult = mrOk then
|
if TForm(Sender).ModalResult = mrOk then
|
||||||
begin
|
begin
|
||||||
CanClose:=CheckCloseForm;
|
|
||||||
if CanClose and Assigned(FOnCloseQuery) then
|
if CanClose and Assigned(FOnCloseQuery) then
|
||||||
FOnCloseQuery(Sender, CanClose);
|
FOnCloseQuery(Sender, CanClose);
|
||||||
|
if CanClose then
|
||||||
|
CanClose:=CheckCloseForm;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user