]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
use HandleWindowEvent() in Close() as it can be called from a GTK+ callback (#9565)
[wxWidgets.git] / 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()