mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix bug #828: AV after switching back to data tab when it had unsaved changed
This commit is contained in:
@@ -1331,6 +1331,11 @@ begin
|
||||
Screen.Cursor := crHourglass;
|
||||
viewingdata := true;
|
||||
sl_query := TWideStringList.Create();
|
||||
|
||||
// Post pending update and set post + cancel buttons to valid state
|
||||
if DataGridHasChanges then
|
||||
Mainform.actDataPostChangesExecute(Sender);
|
||||
|
||||
try
|
||||
if (SelectedTable <> '') and (ActiveDatabase <> '') then begin
|
||||
// Ensure <Table> and <Data> are visible
|
||||
|
||||
Reference in New Issue
Block a user