mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #2040: when closing a query tab, cancel cell editor if active, preventing crash
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user