Commit c966f30b4bc09149848db37ce138072019112d2b
1 parent
e23e30fe
Exists in
beta4
InVesalius was not exiting when closed via menu/close
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
invesalius/gui/frame.py
| ... | ... | @@ -220,7 +220,7 @@ class Frame(wx.Frame): |
| 220 | 220 | Exit InVesalius. |
| 221 | 221 | """ |
| 222 | 222 | self.Destroy() |
| 223 | - sys.exit() | |
| 223 | + sys.exit(0) | |
| 224 | 224 | |
| 225 | 225 | def _HideContentPanel(self, pubsub_evt): |
| 226 | 226 | """ |
| ... | ... | @@ -314,6 +314,7 @@ class Frame(wx.Frame): |
| 314 | 314 | Close all project data. |
| 315 | 315 | """ |
| 316 | 316 | Publisher.sendMessage('Close Project') |
| 317 | + Publisher.sendMessage('Exit') | |
| 317 | 318 | |
| 318 | 319 | def OnMenuClick(self, evt): |
| 319 | 320 | """ | ... | ... |