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,7 +220,7 @@ class Frame(wx.Frame): | ||
220 | Exit InVesalius. | 220 | Exit InVesalius. |
221 | """ | 221 | """ |
222 | self.Destroy() | 222 | self.Destroy() |
223 | - sys.exit() | 223 | + sys.exit(0) |
224 | 224 | ||
225 | def _HideContentPanel(self, pubsub_evt): | 225 | def _HideContentPanel(self, pubsub_evt): |
226 | """ | 226 | """ |
@@ -314,6 +314,7 @@ class Frame(wx.Frame): | @@ -314,6 +314,7 @@ class Frame(wx.Frame): | ||
314 | Close all project data. | 314 | Close all project data. |
315 | """ | 315 | """ |
316 | Publisher.sendMessage('Close Project') | 316 | Publisher.sendMessage('Close Project') |
317 | + Publisher.sendMessage('Exit') | ||
317 | 318 | ||
318 | def OnMenuClick(self, evt): | 319 | def OnMenuClick(self, evt): |
319 | """ | 320 | """ |