Commit ad5da25e6e61ce1913a7a4deb57be0df28936b06

Authored by Thiago Franco de Moraes
1 parent b6838c1c
Exists in master

Showing error message when trying to export surface inside a folder without write permission

Showing 1 changed file with 0 additions and 7 deletions   Show diff stats
invesalius/gui/task_exporter.py
... ... @@ -348,13 +348,6 @@ class InnerTaskPanel(wx.Panel):
348 348  
349 349 Publisher.sendMessage('Export surface to file',
350 350 filename=filename, filetype=filetype)
351   - if not os.path.exists(filename):
352   - dlg = wx.MessageDialog(None,
353   - _("It was not possible to save the surface."),
354   - _("Error saving surface"),
355   - wx.OK | wx.ICON_ERROR)
356   - dlg.ShowModal()
357   - dlg.Destroy()
358 351 else:
359 352 dlg = wx.MessageDialog(None,
360 353 _("You need to create a surface and make it ") +
... ...