X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1680c3561bc4f44c63a026e0d1a5324a39336156..59cb2555551e9f24481affe86ef8b1bcd519c14f:/src/osx/webview_webkit.mm diff --git a/src/osx/webview_webkit.mm b/src/osx/webview_webkit.mm index b99504e125..8c88764884 100644 --- a/src/osx/webview_webkit.mm +++ b/src/osx/webview_webkit.mm @@ -326,6 +326,7 @@ bool wxWebViewWebKit::Create(wxWindow *parent, { m_busy = false; + DontCreatePeer(); wxControl::Create(parent, winID, pos, size, style, wxDefaultValidator, name); #if wxOSX_USE_CARBON @@ -348,7 +349,7 @@ bool wxWebViewWebKit::Create(wxWindow *parent, m_webView = [[WebView alloc] initWithFrame:r frameName:@"webkitFrame" groupName:@"webkitGroup"]; - m_peer = new wxWidgetCocoaImpl( this, m_webView ); + SetPeer(new wxWidgetCocoaImpl( this, m_webView )); #endif MacPostControlCreate(pos, size);