Skip to content
Browse files

After pressing save button on table editor, use the fresh DBObject fr…

…om SHOW TABLE STATUS row, not the old one. This fresh one also has the new table comment. Closes #683
  • Loading branch information...
ansgarbecker committed Oct 27, 2019
1 parent e2acb21 commit 219b417910524f0272d6cd832c08fbefc13138ea
Showing with 6 additions and 3 deletions.
  1. +6 −3 source/table_editor.pas
@@ -376,10 +376,13 @@ procedure TfrmTableEditor.btnSaveClick(Sender: TObject);
// Save changes, and make it impossible to (accidentally) click the save button twice
btnSave.Enabled := False;
if ApplyModifications = mrOK then
else // Re-enable save button when something went wrong
if ApplyModifications = mrOK then begin
// Initialize all edit fields with fresh result from SHOW TABLE STATUS row
end else begin
// Re-enable save button when something went wrong
btnSave.Enabled := True;

0 comments on commit 219b417

Please sign in to comment.
You can’t perform that action at this time.