diff options
Diffstat (limited to 'src/Main/Forms/ChangePasswordDialog.cpp')
-rw-r--r-- | src/Main/Forms/ChangePasswordDialog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Main/Forms/ChangePasswordDialog.cpp b/src/Main/Forms/ChangePasswordDialog.cpp index ac8e8147..5b2fdd04 100644 --- a/src/Main/Forms/ChangePasswordDialog.cpp +++ b/src/Main/Forms/ChangePasswordDialog.cpp | |||
@@ -24,6 +24,12 @@ namespace VeraCrypt | |||
24 | bool enableNewPassword = false; | 24 | bool enableNewPassword = false; |
25 | bool enableNewKeyfiles = false; | 25 | bool enableNewKeyfiles = false; |
26 | bool enablePkcs5Prf = false; | 26 | bool enablePkcs5Prf = false; |
27 | bool isTrueCryptFile = false; | ||
28 | |||
29 | if (volumePath && volumePath->HasTrueCryptExtension ()) | ||
30 | { | ||
31 | isTrueCryptFile = true; | ||
32 | } | ||
27 | 33 | ||
28 | switch (mode) | 34 | switch (mode) |
29 | { | 35 | { |
@@ -54,6 +60,7 @@ namespace VeraCrypt | |||
54 | 60 | ||
55 | CurrentPasswordPanel = new VolumePasswordPanel (this, NULL, password, false, keyfiles, false, true, true, false, true, true); | 61 | CurrentPasswordPanel = new VolumePasswordPanel (this, NULL, password, false, keyfiles, false, true, true, false, true, true); |
56 | CurrentPasswordPanel->UpdateEvent.Connect (EventConnector <ChangePasswordDialog> (this, &ChangePasswordDialog::OnPasswordPanelUpdate)); | 62 | CurrentPasswordPanel->UpdateEvent.Connect (EventConnector <ChangePasswordDialog> (this, &ChangePasswordDialog::OnPasswordPanelUpdate)); |
63 | CurrentPasswordPanel->SetTrueCryptMode (isTrueCryptFile); | ||
57 | CurrentPasswordPanelSizer->Add (CurrentPasswordPanel, 1, wxALL | wxEXPAND); | 64 | CurrentPasswordPanelSizer->Add (CurrentPasswordPanel, 1, wxALL | wxEXPAND); |
58 | 65 | ||
59 | NewPasswordPanel = new VolumePasswordPanel (this, NULL, newPassword, true, newKeyfiles, false, enableNewPassword, enableNewKeyfiles, enableNewPassword, enablePkcs5Prf); | 66 | NewPasswordPanel = new VolumePasswordPanel (this, NULL, newPassword, true, newKeyfiles, false, enableNewPassword, enableNewKeyfiles, enableNewPassword, enablePkcs5Prf); |