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:
alexs75
2014-10-07 04:29:19 +00:00
parent 2be57b3dd5
commit f9e295540f

View File

@ -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;