mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
Avoid calling FlatMenu Destroy() in a finally block
Fixes: https://github.com/wxWidgets/Phoenix/issues/2630
This commit is contained in:
@@ -5358,10 +5358,8 @@ class FlatMenu(FlatMenuBase):
|
||||
|
||||
|
||||
def Destroy(self, *args, **kwargs):
|
||||
try:
|
||||
self.Clear()
|
||||
finally:
|
||||
return super().Destroy(*args, **kwargs)
|
||||
self.Clear()
|
||||
return super().Destroy(*args, **kwargs)
|
||||
|
||||
|
||||
def SetMenuBar(self, mb):
|
||||
|
||||
Reference in New Issue
Block a user