Skip to content

Commit

Permalink
Merge pull request #858 from lukatolo/preferences-bug-fix
Browse files Browse the repository at this point in the history
Quick fix for a bug in preferences.py
  • Loading branch information
rmatsuda authored Oct 7, 2024
2 parents 1a92b61 + 28c891b commit 4ad6094
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion invesalius/gui/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ def __bind_events(self):

def OnOK(self, event):
Publisher.sendMessage("Save Preferences")
self.EndModal(wx.ID_OK)
try:
self.EndModal(wx.ID_OK)
except wx._core.wxAssertionError:
self.Destroy()

def OnCharHook(self, event):
if event.GetKeyCode() == wx.WXK_ESCAPE:
Expand Down

0 comments on commit 4ad6094

Please sign in to comment.