From 1ccbf7f0c3052a31b91c8dce9e092d146c5444a5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 13 Apr 2014 22:07:38 +0000 Subject: [PATCH] Use wxWS_EX_VALIDATE_RECURSIVELY in native Cocoa wxPreferencesEditor too. Transfer data recursively for consistency with the generic implementation and because this generally just makes more sense. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/preferences.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osx/cocoa/preferences.mm b/src/osx/cocoa/preferences.mm index 2590bd24df..534da38010 100644 --- a/src/osx/cocoa/preferences.mm +++ b/src/osx/cocoa/preferences.mm @@ -62,6 +62,12 @@ public: m_toolbarRealized(false), m_visiblePage(NULL) { + // For consistency with the generic version, transfer data recursively: + // this ensures that all controls, even deep inside our pages, get + // correct values from their validators initially and transfer them + // back at the end. + SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY); + m_toolbar = new wxToolBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTB_FLAT | wxTB_TEXT); m_toolbar->SetToolBitmapSize(wxSize(32,32));