LCL, make sure that dbgrid is focused after editor is hidden, fix insert problem described in issue #26929

git-svn-id: trunk@46680 -
This commit is contained in:
jesus 2014-10-25 23:06:16 +00:00
parent f1eae55f15
commit 7b02f9eb70

View File

@ -838,8 +838,10 @@ begin
[ClassName,name,dbgsname(ADataset)]);
{$endif}
if not (gsStartEditing in FGridStatus) then begin
GridFlags := GridFlags + [gfEditingDone];
if EditorMode then
EditorMode := False;
GridFlags := GridFlags - [gfEditingDone];
LayoutChanged;
end;
UpdateActive;