Commit 4bbf5e06ed41df016605f1aa1d0d0b5d7980597f
1 parent
b35498fb
Exists in
master
and in
68 other branches
FIX: Error opening file dialog to save win64
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
invesalius/gui/dialogs.py
@@ -377,8 +377,11 @@ def SaveChangesDialog(filename): | @@ -377,8 +377,11 @@ def SaveChangesDialog(filename): | ||
377 | dlg = wx.MessageDialog(None, msg, | 377 | dlg = wx.MessageDialog(None, msg, |
378 | "InVesalius 3", | 378 | "InVesalius 3", |
379 | wx.ICON_QUESTION | wx.YES_NO | wx.CANCEL) | 379 | wx.ICON_QUESTION | wx.YES_NO | wx.CANCEL) |
380 | + try: | ||
381 | + answer = dlg.ShowModal() | ||
382 | + except(wx._core.PyAssertionError): | ||
383 | + answer = dlg.GetReturnCode() | ||
380 | 384 | ||
381 | - answer = dlg.ShowModal() | ||
382 | dlg.Destroy() | 385 | dlg.Destroy() |
383 | os.chdir(current_dir) | 386 | os.chdir(current_dir) |
384 | 387 |