mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Fix bug #840: Confirm != Confirm.
Press Cancel: No confirm dialog Press X: Confirmation dialog if content was modified
This commit is contained in:
@ -155,6 +155,15 @@ end;
|
||||
|
||||
|
||||
procedure TfrmTextEditor.btnCancelClick(Sender: TObject);
|
||||
begin
|
||||
if FStopping then
|
||||
Exit;
|
||||
FStopping := True;
|
||||
TCustomVirtualStringTree(Owner).CancelEditNode;
|
||||
end;
|
||||
|
||||
|
||||
procedure TfrmTextEditor.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
var
|
||||
DoPost: Boolean;
|
||||
begin
|
||||
@ -172,12 +181,6 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TfrmTextEditor.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
begin
|
||||
btnCancelClick(Sender);
|
||||
end;
|
||||
|
||||
|
||||
procedure TfrmTextEditor.btnApplyClick(Sender: TObject);
|
||||
begin
|
||||
FStopping := True;
|
||||
|
Reference in New Issue
Block a user