Fix bug #828: AV after switching back to data tab when it had unsaved changed

This commit is contained in:
Ansgar Becker
2008-10-26 17:25:42 +00:00
parent a409390487
commit bc3929bf50

View File

@@ -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