Commit 4e301724d72c134a526db8352f7e0a22ce969364
1 parent
722636eb
Exists in
master
and in
68 other branches
ENH: Temporary win64 fix from dialog of save project
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
invesalius/gui/dialogs.py
| ... | ... | @@ -144,8 +144,11 @@ def ShowOpenProjectDialog(): |
| 144 | 144 | # Show the dialog and retrieve the user response. If it is the OK response, |
| 145 | 145 | # process the data. |
| 146 | 146 | filepath = None |
| 147 | - if dlg.ShowModal() == wx.ID_OK: | |
| 148 | - # This returns a Python list of files that were selected. | |
| 147 | + try: | |
| 148 | + if dlg.ShowModal() == wx.ID_OK: | |
| 149 | + # This returns a Python list of files that were selected. | |
| 150 | + filepath = dlg.GetPath() | |
| 151 | + except(wx._core.PyAssertionError): #FIX: win64 | |
| 149 | 152 | filepath = dlg.GetPath() |
| 150 | 153 | |
| 151 | 154 | # Destroy the dialog. Don't do this until you are done with it! | ... | ... |