Commit 14fc6905ec627337a416471cf8d5722968cf9824
1 parent
24463398
Exists in
master
and in
35 other branches
Closing in mac app
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
invesalius/gui/frame.py
@@ -251,7 +251,8 @@ class Frame(wx.Frame): | @@ -251,7 +251,8 @@ class Frame(wx.Frame): | ||
251 | Exit InVesalius. | 251 | Exit InVesalius. |
252 | """ | 252 | """ |
253 | self.Destroy() | 253 | self.Destroy() |
254 | - #sys.exit(0) | 254 | + if hasattr(sys,"frozen") and sys.platform == 'darwin': |
255 | + sys.exit(0) | ||
255 | 256 | ||
256 | def _HideContentPanel(self, pubsub_evt): | 257 | def _HideContentPanel(self, pubsub_evt): |
257 | """ | 258 | """ |
invesalius/invesalius.py
@@ -82,6 +82,9 @@ class InVesalius(wx.App): | @@ -82,6 +82,9 @@ class InVesalius(wx.App): | ||
82 | def Startup2(self): | 82 | def Startup2(self): |
83 | self.control = self.splash.control | 83 | self.control = self.splash.control |
84 | self.frame = self.splash.main | 84 | self.frame = self.splash.main |
85 | + self.SetTopWindow(self.frame) | ||
86 | + self.frame.Show() | ||
87 | + self.frame.Raise() | ||
85 | 88 | ||
86 | # ------------------------------------------------------------------ | 89 | # ------------------------------------------------------------------ |
87 | 90 |