Commit 61f70f412e4de05a65da4c7360258f31b81e623a
1 parent
07c45991
Exists in
master
and in
35 other branches
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 | """ | ... | ... |