From 2e5554019a4711172ca9dd11c7c56c7da3ccaa8b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 13 May 2018 00:10:41 +0200 Subject: [PATCH] Allow calling wxAuiMDIChildFrame::Show() Even if it doesn't do anything, allow calling this method even after creating the child frame for consistency with the normal MDI implementation. --- src/aui/tabmdi.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/aui/tabmdi.cpp b/src/aui/tabmdi.cpp index c088931844..86e7887ecf 100644 --- a/src/aui/tabmdi.cpp +++ b/src/aui/tabmdi.cpp @@ -700,14 +700,6 @@ void wxAuiMDIChildFrame::Init() bool wxAuiMDIChildFrame::Show(bool show) { - // wxAuiMDIChildFrame uses m_activateOnCreate only to decide whether to - // activate the frame when it is created. After Create() is called, - // m_activateOnCreate will never be read again. Therefore, calling this - // function after Create() is pointless and you probably want to call - // Activate() instead. - wxCHECK_MSG( !GetHandle(), false, - wxS("Show() has no effect after Create(). Do you mean Activate()?") ); - m_activateOnCreate = show; // do nothing