From ad5da25e6e61ce1913a7a4deb57be0df28936b06 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Thu, 10 Jun 2021 18:49:01 -0300 Subject: [PATCH] Showing error message when trying to export surface inside a folder without write permission --- invesalius/gui/task_exporter.py | 7 ------- 1 file changed, 0 insertions(+), 7 deletions(-) diff --git a/invesalius/gui/task_exporter.py b/invesalius/gui/task_exporter.py index 5ccfb18..f5e7326 100644 --- a/invesalius/gui/task_exporter.py +++ b/invesalius/gui/task_exporter.py @@ -348,13 +348,6 @@ class InnerTaskPanel(wx.Panel): Publisher.sendMessage('Export surface to file', filename=filename, filetype=filetype) - if not os.path.exists(filename): - dlg = wx.MessageDialog(None, - _("It was not possible to save the surface."), - _("Error saving surface"), - wx.OK | wx.ICON_ERROR) - dlg.ShowModal() - dlg.Destroy() else: dlg = wx.MessageDialog(None, _("You need to create a surface and make it ") + -- libgit2 0.21.2