mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix bug #663.
Caused by: "dataselected" variable seems always false currently. Decided to always cancel unposted modifications when switching focus. Posting UPDATEs or INSERTs is something explicit, not implicit.
This commit is contained in:
@ -1217,9 +1217,9 @@ end;
|
||||
|
||||
begin
|
||||
Screen.Cursor := crHourglass;
|
||||
// Post pending UPDATE
|
||||
if dataselected and Mainform.actDataPost.Enabled then
|
||||
Mainform.actDataPostExecute(Sender);
|
||||
// Unposted row modifications get lost
|
||||
Mainform.actDataPost.Enabled := False;
|
||||
Mainform.actDataCancelEdit.Enabled := False;
|
||||
viewingdata := true;
|
||||
sl_query := TWideStringList.Create();
|
||||
try
|
||||
|
Reference in New Issue
Block a user