mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Fix sporadic access violation when a new row was inserted and UPDATE or INSERT gets posted. Fixes issue #1496
This commit is contained in:
@ -6768,6 +6768,8 @@ end;
|
||||
function TMainForm.DataGridPostUpdateOrInsert(Node: PVirtualNode): Boolean;
|
||||
begin
|
||||
Result := True;
|
||||
if not Assigned(Node) then
|
||||
Exit;
|
||||
if Cardinal(High(DataGridResult.Rows)) >= Node.Index then
|
||||
case DataGridResult.Rows[Node.Index].State of
|
||||
grsModified: Result := GridPostUpdate(DataGrid);
|
||||
|
Reference in New Issue
Block a user