From 86529dadde9af8407711d55d0096330429f79742 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 14 Feb 2015 23:42:15 +0100 Subject: Linux/MacOSX: solve the 'X' icon not closing some dialog. This was caused by a bug of wxFormBuilder that calls SetExtraStyle without taking care of the previous value. --- src/Main/Forms/PreferencesDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Main/Forms/PreferencesDialog.cpp') diff --git a/src/Main/Forms/PreferencesDialog.cpp b/src/Main/Forms/PreferencesDialog.cpp index e22e304b..0c65c5c4 100644 --- a/src/Main/Forms/PreferencesDialog.cpp +++ b/src/Main/Forms/PreferencesDialog.cpp @@ -27,7 +27,7 @@ namespace VeraCrypt RestoreValidatorBell (false) { #define TC_CHECK_BOX_VALIDATOR(NAME) (TC_JOIN(NAME,CheckBox))->SetValidator (wxGenericValidator (&Preferences.NAME)); - + SetExtraStyle( GetExtraStyle() | wxWS_EX_VALIDATE_RECURSIVELY ); #ifdef TC_MACOSX PreferencesNotebook->SetMinSize (wxSize (Gui->GetCharWidth (PreferencesNotebook) * 108, -1)); #endif -- cgit v1.2.3