From 1ef6177ae3605b4aa24beb6d9a0da214c15e100e Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 18 Dec 2016 15:26:35 +0100 Subject: Linux & MacOSX: automatically check TrueCryptMode in password dialog when selecting a container file that has the .tc file extension --- src/Main/Forms/VolumePasswordPanel.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Main/Forms/VolumePasswordPanel.cpp') diff --git a/src/Main/Forms/VolumePasswordPanel.cpp b/src/Main/Forms/VolumePasswordPanel.cpp index 920d4f96..3ec6aedb 100644 --- a/src/Main/Forms/VolumePasswordPanel.cpp +++ b/src/Main/Forms/VolumePasswordPanel.cpp @@ -306,6 +306,16 @@ namespace VeraCrypt { return TrueCryptModeCheckBox->GetValue (); } + + void VolumePasswordPanel::SetTrueCryptMode (bool trueCryptMode) + { + bool bEnablePIM = !trueCryptMode; + TrueCryptModeCheckBox->SetValue (trueCryptMode); + PimCheckBox->Enable (bEnablePIM); + VolumePimStaticText->Enable (bEnablePIM); + VolumePimTextCtrl->Enable (bEnablePIM); + VolumePimHelpStaticText->Enable (bEnablePIM); + } int VolumePasswordPanel::GetHeaderWipeCount () const { -- cgit v1.2.3