Skip to content

Commit

Permalink
Merge pull request #2639 from swt2c/fix_flatmenu_destroy
Browse files Browse the repository at this point in the history
Avoid calling FlatMenu Destroy() in a finally block
  • Loading branch information
swt2c authored Nov 12, 2024
2 parents 21e4ab9 + 8620868 commit 73cbeec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wx/lib/agw/flatmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -5358,10 +5358,8 @@ def __init__(self, parent=None):


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):
Expand Down

0 comments on commit 73cbeec

Please sign in to comment.