mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix logic in TFieldEditForm.OkClick which lead to closing the fieldeditor with ModalResult=mrCancel after SQL errors, although AddUpdateField() sets mrNone.
This commit is contained in:
@ -542,15 +542,9 @@ procedure TFieldEditForm.OKClick(Sender: TObject);
|
||||
begin
|
||||
// add/update what?
|
||||
if fMode in [femFieldUpdate, femFieldAdd] then
|
||||
begin
|
||||
AddUpdateField(self);
|
||||
end;
|
||||
if fMode in [femIndexEditor] then
|
||||
begin
|
||||
UpdateKeys(self);
|
||||
end
|
||||
else
|
||||
ModalResult := mrCancel;
|
||||
AddUpdateField(self)
|
||||
else if fMode in [femIndexEditor] then
|
||||
UpdateKeys(self);
|
||||
end;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user