VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/MountOptionsDialog.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-18 15:26:35 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-26 00:00:04 +0100
commit1ef6177ae3605b4aa24beb6d9a0da214c15e100e (patch)
tree91276de7861c42faccce3efecb4e55aa5af8b9a0 /src/Main/Forms/MountOptionsDialog.cpp
parenta8fea1d64358793691418089552b6bb9ab32d189 (diff)
downloadVeraCrypt-1ef6177ae3605b4aa24beb6d9a0da214c15e100e.tar.gz
VeraCrypt-1ef6177ae3605b4aa24beb6d9a0da214c15e100e.zip
Linux & MacOSX: automatically check TrueCryptMode in password dialog when selecting a container file that has the .tc file extension
Diffstat (limited to 'src/Main/Forms/MountOptionsDialog.cpp')
-rw-r--r--src/Main/Forms/MountOptionsDialog.cpp6
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);