VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Main/Forms/PreferencesDialog.h2
1 files changed, 1 insertions, 1 deletions
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);