From 4bbf5e06ed41df016605f1aa1d0d0b5d7980597f Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Wed, 3 Feb 2010 13:34:59 +0000 Subject: [PATCH] FIX: Error opening file dialog to save win64 --- invesalius/gui/dialogs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py index b54bc1d..4bc90c4 100644 --- a/invesalius/gui/dialogs.py +++ b/invesalius/gui/dialogs.py @@ -377,8 +377,11 @@ def SaveChangesDialog(filename): dlg = wx.MessageDialog(None, msg, "InVesalius 3", wx.ICON_QUESTION | wx.YES_NO | wx.CANCEL) + try: + answer = dlg.ShowModal() + except(wx._core.PyAssertionError): + answer = dlg.GetReturnCode() - answer = dlg.ShowModal() dlg.Destroy() os.chdir(current_dir) -- libgit2 0.21.2