X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/615f9ff096c8c6553361975ab0504255c0f1f584..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/preferences.h diff --git a/include/wx/preferences.h b/include/wx/preferences.h index 1a07fd857b..fb6387a075 100644 --- a/include/wx/preferences.h +++ b/include/wx/preferences.h @@ -93,7 +93,9 @@ class WXDLLIMPEXP_CORE wxPreferencesEditor public: // Ctor creates an empty editor, use AddPage() to add controls to it. wxPreferencesEditor(const wxString& title = wxString()); - ~wxPreferencesEditor(); + + // Dtor destroys the dialog if still shown. + virtual ~wxPreferencesEditor(); // Add a new page to the editor. The editor takes ownership of the page // and won't delete it until it is destroyed itself.