mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +02:00
LCL: Prevent DBGrid raising exception after enabled and hiding inplace editor. Issue #37385, patch from Zdravko Gabrovski.
git-svn-id: trunk@63596 -
This commit is contained in:
parent
0b5f33407d
commit
727eb0ef72
@ -7212,7 +7212,8 @@ begin
|
||||
{$ifdef dbgGrid}DebugLnEnter('grid.DoEditorHide [',Editor.ClassName,'] INIT');{$endif}
|
||||
if gfEditingDone in FGridFlags then begin
|
||||
ParentForm := GetParentForm(Self);
|
||||
ParentForm.ActiveControl := self;
|
||||
if Self.CanFocus then
|
||||
ParentForm.ActiveControl := self;
|
||||
end;
|
||||
Editor.Visible:=False;
|
||||
{$ifdef dbgGrid}DebugLnExit('grid.DoEditorHide [',Editor.ClassName,'] END');{$endif}
|
||||
|
Loading…
Reference in New Issue
Block a user