diff --git a/components/rx/trunk/rxcontrols/rxcloseformvalidator.pas b/components/rx/trunk/rxcontrols/rxcloseformvalidator.pas index 7afbb6055..394c2dd25 100644 --- a/components/rx/trunk/rxcontrols/rxcloseformvalidator.pas +++ b/components/rx/trunk/rxcontrols/rxcloseformvalidator.pas @@ -328,7 +328,7 @@ begin for i:=0 to FItems.Count-1 do begin - if FItems[i].Enabled and (not FItems[i].CheckClose(F as TCustomForm)) then + if FItems[i].Enabled and (FItems[i].FControl.Enabled) and (not FItems[i].CheckClose(F as TCustomForm)) then begin FItems[i].SetFocus; Application.MessageBox(PChar(FItems[i].ErrorMessage), PChar(FErrorMsgCaption), MB_OK + MB_ICONERROR);