Commit 174b9f6fbc7601020d860721edf24d62b1d2cb7e

Authored by Paulo Henrique Junqueira Amorim
1 parent 7e1c8797

FIX: Darwin last selected directory when importing dicom, win and linux, apress problem. fixed.

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
invesalius/gui/dialogs.py
... ... @@ -181,10 +181,11 @@ def ShowImportDirDialog():
181 181 # UnicodeEncodeError is raised. To avoid this, path is encoded in utf-8
182 182 if sys.platform == "win32":
183 183 path = dlg.GetPath()
184   - session.SetLastDicomFolder(path)
185 184 else:
186 185 path = dlg.GetPath().encode('utf-8')
187   - session.SetLastDicomFolder(path)
  186 +
  187 + if (sys.platform != 'darwin'):
  188 + session.SetLastDicomFolder(path)
188 189  
189 190 except(wx._core.PyAssertionError): #TODO: error win64
190 191 path = dlg.GetPath()
... ...