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 PasswordPanel = new VolumePasswordPanel (this, &options, options.Password, disableMountOptions, options.Keyfiles, !disableMountOptions, true, true, false, true, true); PasswordPanel->SetCacheCheckBoxValidator (wxGenericValidator (&Options.CachePassword)); + + if (options.Path && options.Path->HasTrueCryptExtension() && !disableMountOptions + && !options.TrueCryptMode && (options.Pim <= 0)) + { + PasswordPanel->SetTrueCryptMode (true); + } PasswordSizer->Add (PasswordPanel, 1, wxALL | wxEXPAND); |