VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/DeviceSelectionDialog.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-02-14 23:42:15 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-02-16 00:19:24 +0100
commit86529dadde9af8407711d55d0096330429f79742 (patch)
treefb3fa9c303324dac4cb4ed9195abb15435b7915d /src/Main/Forms/DeviceSelectionDialog.cpp
parent544c55debc4d1a99588de099ae2eede3d8f24585 (diff)
downloadVeraCrypt-86529dadde9af8407711d55d0096330429f79742.tar.gz
VeraCrypt-86529dadde9af8407711d55d0096330429f79742.zip
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.
Diffstat (limited to 'src/Main/Forms/DeviceSelectionDialog.cpp')
-rw-r--r--src/Main/Forms/DeviceSelectionDialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Main/Forms/DeviceSelectionDialog.cpp b/src/Main/Forms/DeviceSelectionDialog.cpp
index 4c5173c1..3a0d0fc8 100644
--- a/src/Main/Forms/DeviceSelectionDialog.cpp
+++ b/src/Main/Forms/DeviceSelectionDialog.cpp
@@ -16,6 +16,8 @@ namespace VeraCrypt
DeviceSelectionDialog::DeviceSelectionDialog (wxWindow* parent)
: DeviceSelectionDialogBase (parent)
{
+ SetExtraStyle( GetExtraStyle() | wxWS_EX_VALIDATE_RECURSIVELY );
+
wxBusyCursor busy;
list <int> colPermilles;