From 0f4c414099557f79602ba64726478b0a73eee544 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 27 Oct 2004 12:59:19 +0000 Subject: [PATCH] setting the invoking window added to two other wxMenuBar manipulating methods git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/menu.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mac/carbon/menu.cpp b/src/mac/carbon/menu.cpp index f4f6330016..841f2815ec 100644 --- a/src/mac/carbon/menu.cpp +++ b/src/mac/carbon/menu.cpp @@ -791,6 +791,8 @@ wxMenu *wxMenuBar::Replace(size_t pos, wxMenu *menu, const wxString& title) Refresh(); } + if (m_invokingWindow) + wxMenubarSetInvokingWindow( menu, m_invokingWindow ); return menuOld; } @@ -820,6 +822,8 @@ bool wxMenuBar::Insert(size_t pos, wxMenu *menu, const wxString& title) } Refresh(); } + if (m_invokingWindow) + wxMenubarSetInvokingWindow( menu, m_invokingWindow ); return TRUE; } @@ -867,7 +871,7 @@ bool wxMenuBar::Append(wxMenu *menu, const wxString& title) Refresh(); } - // m_invokingWindow is set after wxFrame::SetMenuBar(). This call enables + // m_invokingWindow is set after wxFrame::SetMenuBar(). This call enables // adding menu later on. if (m_invokingWindow) wxMenubarSetInvokingWindow( menu, m_invokingWindow ); -- 2.45.2