diff options
Diffstat (limited to 'src/Main/Forms/MountOptionsDialog.cpp')
-rw-r--r-- | src/Main/Forms/MountOptionsDialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Main/Forms/MountOptionsDialog.cpp b/src/Main/Forms/MountOptionsDialog.cpp index c6b47fd5..c7a853c2 100644 --- a/src/Main/Forms/MountOptionsDialog.cpp +++ b/src/Main/Forms/MountOptionsDialog.cpp | |||
@@ -36,6 +36,12 @@ namespace VeraCrypt | |||
36 | 36 | ||
37 | PasswordPanel = new VolumePasswordPanel (this, &options, options.Password, disableMountOptions, options.Keyfiles, !disableMountOptions, true, true, false, true, true); | 37 | PasswordPanel = new VolumePasswordPanel (this, &options, options.Password, disableMountOptions, options.Keyfiles, !disableMountOptions, true, true, false, true, true); |
38 | PasswordPanel->SetCacheCheckBoxValidator (wxGenericValidator (&Options.CachePassword)); | 38 | PasswordPanel->SetCacheCheckBoxValidator (wxGenericValidator (&Options.CachePassword)); |
39 | |||
40 | if (options.Path && options.Path->HasTrueCryptExtension() && !disableMountOptions | ||
41 | && !options.TrueCryptMode && (options.Pim <= 0)) | ||
42 | { | ||
43 | PasswordPanel->SetTrueCryptMode (true); | ||
44 | } | ||
39 | 45 | ||
40 | PasswordSizer->Add (PasswordPanel, 1, wxALL | wxEXPAND); | 46 | PasswordSizer->Add (PasswordPanel, 1, wxALL | wxEXPAND); |
41 | 47 | ||