]> git.saurik.com Git - wxWidgets.git/commit - src/osx/nonownedwnd_osx.cpp
Don't use a destroy event handler to disconnect the native control's delegate as...
authorKevin Ollivier <kevino@theolliviers.com>
Sun, 3 Jan 2010 23:59:32 +0000 (23:59 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sun, 3 Jan 2010 23:59:32 +0000 (23:59 +0000)
commite2758e21753c00b8e36f11c003fd6cd0e5137391
tree1292e76c177894eea7f803065afb6f08da2106ce
parentd9edff064d1443d15937ca429917527483f46a31
Don't use a destroy event handler to disconnect the native control's delegate as the destroy event propagates and can cause the TLW to remove its delegate at unexpected times, such as when a child control is destroyed but the TLW remains active. Instead, do it in response to the Destroy() call.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/osx/nonownedwnd.h
src/osx/nonownedwnd_osx.cpp