VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/VolumePasswordPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main/Forms/VolumePasswordPanel.cpp')
-rw-r--r--src/Main/Forms/VolumePasswordPanel.cpp10
1 files changed, 10 insertions, 0 deletions
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
306 { 306 {
307 return TrueCryptModeCheckBox->GetValue (); 307 return TrueCryptModeCheckBox->GetValue ();
308 } 308 }
309
310 void VolumePasswordPanel::SetTrueCryptMode (bool trueCryptMode)
311 {
312 bool bEnablePIM = !trueCryptMode;
313 TrueCryptModeCheckBox->SetValue (trueCryptMode);
314 PimCheckBox->Enable (bEnablePIM);
315 VolumePimStaticText->Enable (bEnablePIM);
316 VolumePimTextCtrl->Enable (bEnablePIM);
317 VolumePimHelpStaticText->Enable (bEnablePIM);
318 }
309 319
310 int VolumePasswordPanel::GetHeaderWipeCount () const 320 int VolumePasswordPanel::GetHeaderWipeCount () const
311 { 321 {