Commit 61f70f412e4de05a65da4c7360258f31b81e623a

Authored by Thiago Franco de Moraes
1 parent 07c45991

Not closing InVesalius when user cancels it

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
invesalius/gui/frame.py
... ... @@ -353,7 +353,8 @@ class Frame(wx.Frame):
353 353 Close all project data.
354 354 """
355 355 Publisher.sendMessage('Close Project')
356   - Publisher.sendMessage('Exit')
  356 + if not ses.Session().IsOpen():
  357 + Publisher.sendMessage('Exit')
357 358  
358 359 def OnMenuClick(self, evt):
359 360 """
... ...