Skip to content

Commit ed8becf

Browse files
committed
Minor changes to Delete User Database dialogue box
Punctuation & spacing changes Confirmation text string now cleared when invalid text entered
1 parent 4040a56 commit ed8becf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Src/FmDeleteUserDBDlg.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,14 @@ procedure TDeleteUserDBDlg.ArrangeForm;
6464

6565
procedure TDeleteUserDBDlg.btnOKClick(Sender: TObject);
6666
resourcestring
67-
sBadPassword = 'Invalid confirmation text entered: not deleting';
67+
sBadPassword = 'Invalid confirmation text entered';
6868
begin
6969
inherited;
7070
fPermissionGranted := IsValidPassword;
7171
if not fPermissionGranted then
7272
begin
7373
TMessageBox.Error(Self, sBadPassword);
74+
edConfirm.Text := '';
7475
ModalResult := mrNone;
7576
end;
7677
end;

Src/Res/HTML/dlg-dbdelete.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ <h1>
3434
<p>
3535
<strong class="warning">This action cannot be undone: you will loose all your user-defined snippets.</strong>
3636
</p>
37-
37+
3838
<p>
39-
To confirm enter <code>DELETE MY SNIPPETS</code> (in capital letters) in the box below then click <em>OK</em>.
39+
To confirm enter <code>DELETE</code> <code>MY</code> <code>SNIPPETS</code> (in capital letters) in the box below, then click <em>OK</em>.
4040
</p>
41-
41+
4242
<p>
4343
<strong>There will be no further chances to change your mind.</strong>
4444
</p>

0 commit comments

Comments
 (0)