mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix crash when trying to add a new grid row while a first one was not yet saved. Closes #788
This commit is contained in:
@@ -9401,8 +9401,12 @@ begin
|
||||
Allowed := Results.SaveModifications;
|
||||
DisplayRowCountStats(Sender);
|
||||
end else if Results.Inserted then begin
|
||||
Results.DiscardModifications;
|
||||
Sender.DeleteNode(OldNode);
|
||||
if NewNode <> nil then begin
|
||||
Results.DiscardModifications;
|
||||
Sender.DeleteNode(OldNode);
|
||||
end else begin
|
||||
Allowed := False;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user