Set transfer flag for subMenu in MenuItem constructor

This fixes a crash when wx.MenuItem with a submenu.  Fixes #1648.
This commit is contained in:
Scott Talbert
2020-05-27 11:11:01 -04:00
parent bda5fbefd7
commit 0e0b6b72a2

View File

@@ -36,6 +36,7 @@ def run():
c.addPrivateCopyCtor()
tools.removeVirtuals(c)
c.find('wxMenuItem.subMenu').transfer = True
c.find('SetSubMenu.menu').transfer = True
# deprecated and removed