Issue #2040: when closing a query tab, cancel cell editor if active, preventing crash

This commit is contained in:
Ansgar Becker
2024-11-01 08:00:54 +01:00
parent a5905834bf
commit 2ba94bfd07

View File

@@ -12381,6 +12381,9 @@ begin
end;
if not IsQueryTab(PageIndex, False) then
Exit;
// Cancel cell editor if active, preventing crash. See issue #2040
if ActiveGrid.IsEditing then
ActiveGrid.CancelEditNode;
// Ask user if query content shall be saved to disk
if not ConfirmTabClose(PageIndex, False) then
Exit;