mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix bug #565: Post pending UPDATE when switching tables in data tab . To be exact, there are two events which call actDataPostChanges now: 1. Switching to another table or refreshing the current one and 2. closing the whole form .
This commit is contained in:
@ -990,6 +990,10 @@ procedure TMDIChild.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
var
|
||||
reg : TRegistry;
|
||||
begin
|
||||
// Post pending UPDATE
|
||||
if DataGridHasChanges then
|
||||
Mainform.actDataPostChangesExecute(Sender);
|
||||
|
||||
SetWindowConnected( false );
|
||||
SetWindowName( main.discname );
|
||||
Application.Title := APPNAME;
|
||||
@ -1294,8 +1298,9 @@ end;
|
||||
|
||||
begin
|
||||
Screen.Cursor := crHourglass;
|
||||
// Unposted row modifications get lost
|
||||
DataGridHasChanges := False;
|
||||
// Post pending UPDATE
|
||||
if DataGridHasChanges then
|
||||
Mainform.actDataPostChangesExecute(Sender);
|
||||
viewingdata := true;
|
||||
sl_query := TWideStringList.Create();
|
||||
try
|
||||
|
Reference in New Issue
Block a user