mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Table editor: Make it impossible to (accidentally) click the save button twice. Closes #527
This commit is contained in:
@@ -372,8 +372,13 @@ end;
|
||||
|
||||
procedure TfrmTableEditor.btnSaveClick(Sender: TObject);
|
||||
begin
|
||||
// Save changes, and make it impossible to (accidentally) click the save button twice
|
||||
btnSave.Enabled := False;
|
||||
btnSave.Repaint;
|
||||
if ApplyModifications = mrOK then
|
||||
Init(DBObject);
|
||||
Init(DBObject)
|
||||
else // Re-enable save button when something went wrong
|
||||
btnSave.Enabled := True;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user