]> git.saurik.com Git - wxWidgets.git/commitdiff
use HandleWindowEvent() in Close() as it can be called from a GTK+ callback (#9565)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 13 Jun 2008 00:09:19 +0000 (00:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 13 Jun 2008 00:09:19 +0000 (00:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 6a5a381c0570470d81488ba52ab6809324369094..6ccc05323efcb0a2e5d862e4a4c0eade07d8a53b 100644 (file)
@@ -402,7 +402,7 @@ bool wxWindowBase::Close(bool force)
 
     // return false if window wasn't closed because the application vetoed the
     // close event
-    return GetEventHandler()->ProcessEvent(event) && !event.GetVeto();
+    return HandleWindowEvent(event) && !event.GetVeto();
 }
 
 bool wxWindowBase::DestroyChildren()