Commit 08b166440949c4f78ed527d6400c1bba6f978c2a
1 parent
0aea38ae
Exists in
master
and in
61 other branches
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
@@ -227,7 +227,7 @@ class Frame(wx.Frame): | @@ -227,7 +227,7 @@ class Frame(wx.Frame): | ||
227 | Exit InVesalius. | 227 | Exit InVesalius. |
228 | """ | 228 | """ |
229 | self.Destroy() | 229 | self.Destroy() |
230 | - sys.exit() | 230 | + sys.exit(0) |
231 | 231 | ||
232 | def _HideContentPanel(self, pubsub_evt): | 232 | def _HideContentPanel(self, pubsub_evt): |
233 | """ | 233 | """ |
@@ -321,6 +321,7 @@ class Frame(wx.Frame): | @@ -321,6 +321,7 @@ class Frame(wx.Frame): | ||
321 | Close all project data. | 321 | Close all project data. |
322 | """ | 322 | """ |
323 | Publisher.sendMessage('Close Project') | 323 | Publisher.sendMessage('Close Project') |
324 | + Publisher.sendMessage('Exit') | ||
324 | 325 | ||
325 | def OnMenuClick(self, evt): | 326 | def OnMenuClick(self, evt): |
326 | """ | 327 | """ |