VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main')
-rw-r--r--src/Main/Forms/PreferencesDialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Main/Forms/PreferencesDialog.cpp b/src/Main/Forms/PreferencesDialog.cpp
index 50c9c300..e22e304b 100644
--- a/src/Main/Forms/PreferencesDialog.cpp
+++ b/src/Main/Forms/PreferencesDialog.cpp
@@ -153,9 +153,9 @@ namespace VeraCrypt
Fit();
Gui->SetListCtrlColumnWidths (HotkeyListCtrl, colPermilles);
RestoreValidatorBell = !wxTextValidator::IsSilent();
- wxTextValidator::SetBellOnError (true);
+ wxTextValidator::SuppressBellOnError (true);
HotkeyTextCtrl->SetValidator (wxTextValidator (wxFILTER_INCLUDE_CHAR_LIST));
UpdateHotkeyButtons();
#endif
@@ -202,10 +202,12 @@ namespace VeraCrypt
}
PreferencesDialog::~PreferencesDialog ()
{
+#ifdef TC_WINDOWS
if (RestoreValidatorBell)
- wxTextValidator::SetBellOnError (false);
+ wxTextValidator::SuppressBellOnError (false);
+#endif
}
void PreferencesDialog::SelectPage (wxPanel *page)
{