From 41607d126a0a045222a5fc2fac5c9e77b40099f7 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 4 Jan 2015 19:26:50 +0100 Subject: Linux/MacOSX: make the cancel button work on the preferences dialog. --- src/Main/Forms/PreferencesDialog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Main/Forms/PreferencesDialog.h b/src/Main/Forms/PreferencesDialog.h index d094203c..a7822ec4 100644 --- a/src/Main/Forms/PreferencesDialog.h +++ b/src/Main/Forms/PreferencesDialog.h @@ -26,7 +26,7 @@ namespace VeraCrypt protected: void OnAssignHotkeyButtonClick (wxCommandEvent& event); void OnBackgroundTaskEnabledCheckBoxClick (wxCommandEvent& event); - void OnCancelButtonClick (wxCommandEvent& event) { Close(); } + void OnCancelButtonClick (wxCommandEvent& event) { EndModal (wxID_CANCEL); } void OnClose (wxCloseEvent& event); void OnDismountOnPowerSavingCheckBoxClick (wxCommandEvent& event); void OnDismountOnScreenSaverCheckBoxClick (wxCommandEvent& event); -- cgit v1.2.3