From: Vadim Zeitlin Date: Sun, 7 Mar 2010 10:46:24 +0000 (+0000) Subject: Skip wxChildFocusEvent in wxAuiNotebook handler. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d4f4657af03eaa96cb4687426f75cfb46feec0c9 Skip wxChildFocusEvent in wxAuiNotebook handler. There doesn't seem to be any good reason to eat the event in this handler, leave it for the others if needed. See #11785. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 379f0d61ba..b3b443f62a 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -4158,6 +4158,8 @@ void wxAuiNotebook::RemoveEmptyTabFrames() void wxAuiNotebook::OnChildFocusNotebook(wxChildFocusEvent& evt) { + evt.Skip(); + // if we're dragging a tab, don't change the current selection. // This code prevents a bug that used to happen when the hint window // was hidden. In the bug, the focus would return to the notebook